editors/LDViewer.py
branch1.1 Korean release
changeset 1280 72a826dfcfbb
parent 1081 9789531bc57c
child 1311 85ca4fa0720b
--- a/editors/LDViewer.py	Wed Mar 13 12:34:55 2013 +0900
+++ b/editors/LDViewer.py	Wed Jul 31 10:45:07 2013 +0900
@@ -184,17 +184,17 @@
 
     def RefreshView(self, variablepanel=True, selection=None):
         Viewer.RefreshView(self, variablepanel, selection)
-        wx.CallAfter(self.Refresh)
-        for i, rung in enumerate(self.Rungs):
-            bbox = rung.GetBoundingBox()
-            if i < len(self.RungComments):
-                if self.RungComments[i]:
-                    pos = self.RungComments[i].GetPosition()
-                    if pos[1] > bbox.y:
-                        self.RungComments.insert(i, None)
-            else:
-                self.RungComments.insert(i, None)
-    
+        if self.GetDrawingMode() != FREEDRAWING_MODE:
+            for i, rung in enumerate(self.Rungs):
+                bbox = rung.GetBoundingBox()
+                if i < len(self.RungComments):
+                    if self.RungComments[i]:
+                        pos = self.RungComments[i].GetPosition()
+                        if pos[1] > bbox.y:
+                            self.RungComments.insert(i, None)
+                else:
+                    self.RungComments.insert(i, None)
+        
     def loadInstance(self, instance, ids, selection):
         Viewer.loadInstance(self, instance, ids, selection)
         if self.GetDrawingMode() != FREEDRAWING_MODE: