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 90629 - gimp-image-add-hguide and gimp-image-add-vguide fail to add a guide at position 0
gimp-image-add-hguide and gimp-image-add-vguide fail to add a guide at positi...
Status: VERIFIED FIXED
Product: GIMP
Classification: Other
Component: libgimp
1.x
Other All
: Normal minor
: ---
Assigned To: GIMP Bugs
Daniel Egger
Depends on:
Blocks:
 
 
Reported: 2002-08-13 11:31 UTC by paul_doidge
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description paul_doidge 2002-08-13 11:31:21 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.
Comment 1 Raphaël Quinet 2002-08-13 15:33:48 UTC
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
Comment 2 Sven Neumann 2003-03-07 16:20:03 UTC
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.
Comment 3 Sven Neumann 2003-03-07 17:09:33 UTC
... 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.
Comment 4 Raphaël Quinet 2003-06-20 18:56:48 UTC
The fix is part of the stable release 1.2.4.  Closing this bug.