plug-ins/script-fu/scripts/guides-new.scm look at the image's

2005-11-08  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/scripts/guides-new.scm
	* plug-ins/script-fu/scripts/guides-new-percent.scm: look at the
	image's width/height, not the drawable's. Fixes bug #320933.
This commit is contained in:
Michael Natterer
2005-11-08 09:06:59 +00:00
committed by Michael Natterer
parent 5f90c4cddb
commit 80c44102c1
3 changed files with 10 additions and 4 deletions

View File

@ -7,8 +7,8 @@
drawable
direction
position)
(let* ((width (car (gimp-drawable-width drawable)))
(height (car (gimp-drawable-height drawable))))
(let* ((width (car (gimp-image-width image)))
(height (car (gimp-image-height image))))
(if (= direction 0)
(set! position (/ (* height position) 100))

View File

@ -8,8 +8,8 @@
drawable
direction
position)
(let* ((width (car (gimp-drawable-width drawable)))
(height (car (gimp-drawable-height drawable))))
(let* ((width (car (gimp-image-width image)))
(height (car (gimp-image-height image))))
(if (= direction 0)
;; check position is inside the image boundaries