Commit 80c44102 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

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.
parent 5f90c4cd
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.
2005-11-07 Michael Natterer <mitch@gimp.org>
* app/core/gimp-modules.c
......
......@@ -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))
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment