After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 354555 - PyGimp GimpHSV interface can cause crash when passing integers
PyGimp GimpHSV interface can cause crash when passing integers
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Gimp-Python
git master
Other All
: Normal normal
: ---
Assigned To: Manish Singh
GIMP Bugs
: 357149 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-09-06 02:53 UTC by david gowers
Modified: 2006-09-22 05:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description david gowers 2006-09-06 02:53:05 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.
Comment 1 Manish Singh 2006-09-17 07:07:38 UTC
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.
Comment 2 Manish Singh 2006-09-22 05:53:26 UTC
*** Bug 357149 has been marked as a duplicate of this bug. ***