--- a/ImageEditor.st Thu May 21 16:35:33 2009 +0200
+++ b/ImageEditor.st Wed May 27 15:50:49 2009 +0200
@@ -3589,7 +3589,9 @@
((anEvent isButtonPressEvent and:[ anEvent button == 1 ])
or:[ anEvent isButtonMotionEvent and:[ anEvent hasButton1 ]]) ifTrue:[
p := anEvent x @ anEvent y.
- p := anEvent view transformation applyInverseTo:p.
+ anEvent view transformation notNil ifTrue:[
+ p := anEvent view transformation applyInverseTo:p.
+ ].
self imageEditView scrollToMakeVisible:p.
^ true.
].
@@ -3816,7 +3818,7 @@
self tileModeHolder value ifTrue:[
self imagePreView tileMode:true tileOffset:(self image extent).
].
- self imagePreView image:self image.
+ self imagePreView setImage:(self image) scroll:false invalidate:true.
! !
!ImageEditor methodsFor:'queries'!
@@ -5222,6 +5224,8 @@
makeSubImageX:l y:t
width:(img width - l - r)
height:(img height - t - b).
+
+ self updateImagePreView.
self updateInfoLabel
].
].