plug-ins/script-fu/scripts/guides-new.scm allow guides at the right and

2006-01-24  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/scripts/guides-new.scm
	* plug-ins/script-fu/scripts/guides-new-percent.scm: allow guides
	at the right and bottom edges of the canvas. Fixes bug #328320.
This commit is contained in:
Michael Natterer 2006-01-23 23:18:02 +00:00 committed by Michael Natterer
parent 32de28295a
commit d2ff272f1d
3 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2006-01-24 Michael Natterer <mitch@gimp.org>
* plug-ins/script-fu/scripts/guides-new.scm
* plug-ins/script-fu/scripts/guides-new-percent.scm: allow guides
at the right and bottom edges of the canvas. Fixes bug #328320.
2006-01-21 Simon Budig <simon@gimp.org>
* desktop/gimp.desktop.in.in: Added "GTK" category. Fixes

View File

@ -16,8 +16,8 @@
(if (= direction 0)
;; convert position to pixel
(if (< position height) (gimp-image-add-hguide image position))
(if (< position width) (gimp-image-add-vguide image position)))
(if (<= position height) (gimp-image-add-hguide image position))
(if (<= position width) (gimp-image-add-vguide image position)))
(gimp-displays-flush)))

View File

@ -13,8 +13,8 @@
(if (= direction 0)
;; check position is inside the image boundaries
(if (< position height) (gimp-image-add-hguide image position))
(if (< position width) (gimp-image-add-vguide image position)))
(if (<= position height) (gimp-image-add-hguide image position))
(if (<= position width) (gimp-image-add-vguide image position)))
(gimp-displays-flush)))