graphics/GraphicCommons.py
changeset 1102 cd4a996ddaa7
parent 1089 5cd1f8df71aa
child 1120 35d772ec1a76
--- a/graphics/GraphicCommons.py	Wed May 08 23:31:12 2013 +0200
+++ b/graphics/GraphicCommons.py	Thu May 09 09:00:24 2013 +0200
@@ -358,10 +358,13 @@
     
     def GetDataType(self, iec_path):
         if self.DataProducer is not None:
+            data_type = self.DataProducer.GetDebugIECVariableType(iec_path.upper())
+            if data_type is not None:
+                return data_type
+            
             infos = self.DataProducer.GetInstanceInfos(iec_path)
             if infos is not None:
                 return infos["type"]
-            return self.DataProducer.GetDebugIECVariableType(iec_path.upper())
         return None
     
     def IsNumType(self, data_type):