Fixed bug Viewer not refreshed when debugging
authorLaurent Bessard
Fri, 31 May 2013 09:07:23 +0200
changeset 1201 3907f10efcf4
parent 1200 501cb0bb4c05
child 1202 3d8c87ab2b5d
Fixed bug Viewer not refreshed when debugging
editors/Viewer.py
--- a/editors/Viewer.py	Fri May 31 00:07:21 2013 +0200
+++ b/editors/Viewer.py	Fri May 31 09:07:23 2013 +0200
@@ -1049,8 +1049,8 @@
             DebugViewer.RefreshNewData(self)
     
     def SubscribeAllDataConsumers(self):
+        self.RefreshView()
         DebugViewer.SubscribeAllDataConsumers(self)
-        self.RefreshView()
     
     # Refresh Viewer elements
     def RefreshView(self, variablepanel=True, selection=None):
@@ -3402,6 +3402,7 @@
                 text = _("Debug: %s") % self.InstancePath
                 if is_action and self.Value is not None:
                     text += " ("
+                text_offset_x, text_offset_y = self.CalcUnscrolledPosition(2, 2)
                 dc.DrawText(text, 2, 2)
                 if is_action and self.Value is not None:
                     value_text = self.VALUE_TRANSLATION[self.Value]