# HG changeset patch
# User Surkov Sergey <surkovsv93@gmail.com>
# Date 1485525184 -10800
# Node ID 13d15a1ae899fbb74d56c2300835cff31edf3ff3
# Parent  2d1fb99065e8fdd7ddab2bfb07f3fcba833e7844
broken code is temporarily blocked
This code used to highlight with green color text in upper-left corner (path to current instance)  in debug mode, if current instance active. Only SFC actions are affected. #16

diff -r 2d1fb99065e8 -r 13d15a1ae899 editors/Viewer.py
--- a/editors/Viewer.py	Fri Jan 27 16:01:23 2017 +0300
+++ b/editors/Viewer.py	Fri Jan 27 16:53:04 2017 +0300
@@ -3660,13 +3660,16 @@
                 scalex, scaley = dc.GetUserScale()
                 dc.SetUserScale(1, 1)
 
-                is_action = self.TagName.split("::")[0] == "A"
+                # is_action = self.TagName.split("::")[0] == "A"
                 text = _("Debug: %s") % self.InstancePath
-                if is_action and self.Value is not None:
-                    text += " ("
+                '''if is_action and self.Value is not None:
+                    text += " ("'''
                 text_offset_x, text_offset_y = self.CalcUnscrolledPosition(2, 2)
                 dc.DrawText(text, text_offset_x, text_offset_y)
-                if is_action and self.Value is not None:
+                # TODO  Fix self.Value in LD_Viewer instance.
+                # This code used to highlight with green color text in upper-left corner
+                # (path to current instance) in debug mode, if current instance active. Only SFC actions are affected.
+                '''if is_action and self.Value is not None:
                     value_text = self.VALUE_TRANSLATION[self.Value]
                     tw, th = dc.GetTextExtent(text)
                     if self.Value:
@@ -3675,7 +3678,7 @@
                     if self.Value:
                         dc.SetTextForeground(wx.BLACK)
                     vw, vh = dc.GetTextExtent(value_text)
-                    dc.DrawText(")", text_offset_x + tw + vw + 2, text_offset_y)
+                    dc.DrawText(")", text_offset_x + tw + vw + 2, text_offset_y)'''
 
                 dc.SetUserScale(scalex, scaley)