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:
committed by
Michael Natterer
parent
5f90c4cddb
commit
80c44102c1
@ -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
|
||||
|
||||
Reference in New Issue
Block a user