2.99.17: Error in Fractal Explorer after API port
Environment/Versions
- GIMP version: GIMP_2_99_16-520-ga186220e, also present on current master GIMP_2_99_16-955-g0351f48d
- Package: Compiled from source
- Operating System: Linux
Description of the bug
In Fractal Explorer on recent git master, GIMP gives error messages on trying to change gradient in the Color tab.
Gimp messages on choosing a gradient:
Calling error for procedure 'gimp-gradient-get-uniform-samples':
Procedure 'gimp-gradient-get-uniform-samples' has been called with value '<not transformable to string>' for argument 'gradient' (#1, type GimpGradient). This value is out of range.
Calling error for procedure 'gimp-gradient-get-uniform-samples':
Procedure 'gimp-gradient-get-uniform-samples' has been called with value '0' for argument 'num-samples' (#2, type gint). This value is out of range.
On cancelling the whole window:
Calling error for procedure 'gimp-gradient-get-uniform-samples':
Procedure 'gimp-gradient-get-uniform-samples' has been called with value '0' for argument 'num-samples' (#2, type gint). This value is out of range.
Bisecting narrowed the problem down to occur within the API port in !1065 (merged):
GIMP_2_99_16-441-g3c53d5f38e 1 oct GOOD: no error in fractal-explorer, possible to choose gradient
... couldn't compile on tested commits in between ...
GIMP_2_99_16-520-ga186220e58 2 oct BAD: error in fractal-explorer
Reproduction
Is the bug reproducible? Always
Reproduction steps:
- Open an image, choose Filters->Render->Fractal->Fractal Explorer
- Choose colors tab
- Click on color swatch
- Choose a gradient
…
Expected result: That chosen gradient is selected
Actual result: Error messages