GNOME Bugzilla – Bug 90629
gimp-image-add-hguide and gimp-image-add-vguide fail to add a guide at position 0
Last modified: 2009-08-15 18:40:50 UTC
When using script-fu (or probably any scripting/plugin language) trying to add a guide at position 0 fails. It is possible to drag a guide in the normal manner, and you can then check the position with gimp-image-get- guide-position and it will return 0. If found the following piece of generated code in \app\guides_cmd.c: offset = args[1].value.pdb_int; if (offset <= 0) success = FALSE; Where I guess it should be: offset = args[1].value.pdb_int; if (offset < 0) success = FALSE; This of course is all generated using perl (I think?) so that would need to be changed.
Hmmm... There is no .\app\guides_cmd.c, but maybe you mean ./app/guides_cmd.c? ;-) You can find the source for this file in ./tools/pdbgen/pdb/guides.pdb
Fixed in the HEAD branch: 2003-03-07 Sven Neumann <sven@gimp.org> * tools/pdbgen/pdb/guides.pdb: allow to add guides with an offset of 0 (spotted by Paul Doidge, bug #90629). * app/pdb/guides_cmds.c: regenerated.
... and in the stable branch: 2003-03-07 Sven Neumann <sven@gimp.org> * tools/pdbgen/pdb/guides.pdb * app/guides_cmds.c: merged fix for bug #90629 from HEAD branch.
The fix is part of the stable release 1.2.4. Closing this bug.