ImageView.st
changeset 5614 eb3741274c29
parent 5611 8c53817d5e0a
child 5615 38692913900c
--- a/ImageView.st	Wed Oct 04 14:16:42 2017 +0200
+++ b/ImageView.st	Wed Oct 04 16:41:46 2017 +0200
@@ -504,12 +504,18 @@
 !
 
 magnificationFactor:aNumber
-    explicitMagnificationFactor ~= aNumber ifTrue:[
+    true "explicitMagnificationFactor ~= aNumber" ifTrue:[
         magnificationFactor := explicitMagnificationFactor := aNumber.
         "/    magnificationFactor fractionPart < 0.1 ifTrue:[
         "/        "magnifying by integer factor is faster"
         "/        magnificationFactor := magnificationFactor truncated.
         "/    ].
+        self synchronized:[
+            smoothingProcess notNil ifTrue:[
+                smoothingProcess terminate.
+                smoothMagnifiedImage := nil.
+            ].
+        ].    
         magnifiedImage := smoothMagnifiedImage := nil.
         magnificationFactor = 1 ifTrue:[
             self contentsChanged.
@@ -518,7 +524,7 @@
     ].
 
     "Modified: / 06-09-2017 / 12:51:28 / Maren"
-    "Modified: / 28-09-2017 / 18:21:00 / cg"
+    "Modified: / 04-10-2017 / 16:40:00 / cg"
 !
 
 model:aValueHolder