GNOME Bugzilla – Bug 354555
PyGimp GimpHSV interface can cause crash when passing integers
Last modified: 2006-09-22 05:53:26 UTC
I'm aware that this interface is definitely work-in-progress, but I decided this report should probably go here anyway. Try the following in the pygimp console: import gimpcolor c = gimpcolor.HSV(1,1,1) c # crash will occur here; I wonder why it doesn't occur upon instantiation? if you use 1.0's instead of 1's, it works fine. The same behaviour occurs with the GimpHSL interface. The most correct behaviour IMO is to consider integral values as being on the 0..360 and 0..100 scales shown in the scales colorselector.
A braino compounded by cut'n'pasting. Fixed now: 2006-09-17 Manish Singh <yosh@gimp.org> * plug-ins/pygimp/pygimp-colors.c: Use proper return value types for object constructors. Fixes bug #354555.
*** Bug 357149 has been marked as a duplicate of this bug. ***