class: ImageEditor
authorClaus Gittinger <cg@exept.de>
Thu, 19 Feb 2015 13:23:06 +0100
changeset 3188 351c645c0921
parent 3187 3fcd97a56a0e
child 3189 4f828e688bf5
class: ImageEditor changed: #grabWindowImage
ImageEditor.st
--- a/ImageEditor.st	Mon Feb 16 18:03:18 2015 +0100
+++ b/ImageEditor.st	Thu Feb 19 13:23:06 2015 +0100
@@ -6802,13 +6802,13 @@
     "let user choose an area and grab that are for editing"
 
     self grabScreenImageUsing:[
-        |v|
+        |v topView|
 
         (v := Screen current viewFromUser) notNil ifTrue:[
-            v topView raise.
-            v topView makeFullyVisible.
+            topView := v topView.
+            topView raise; makeFullyVisible.
             Delay waitForSeconds:0.5.   "/ give view a chance to redraw itself.
-            Image fromView:(v topView)
+            Image fromView:topView
         ].
     ].
 ! !