ProjectController.py
changeset 1579 418e6bac22e8
parent 1574 ce9c0e68389c
child 1581 2295fdc5c271
equal deleted inserted replaced
1578:f8e2a04c4445 1579:418e6bac22e8
  1078         return True
  1078         return True
  1079 
  1079 
  1080     def ShowError(self, logger, from_location, to_location):
  1080     def ShowError(self, logger, from_location, to_location):
  1081         chunk_infos = self.GetChunkInfos(from_location, to_location)
  1081         chunk_infos = self.GetChunkInfos(from_location, to_location)
  1082         for infos, (start_row, start_col) in chunk_infos:
  1082         for infos, (start_row, start_col) in chunk_infos:
  1083             start = (from_location[0] - start_row, from_location[1] - start_col)
  1083             row = 1 if from_location[0] < start_row else (from_location[0] - start_row)            
  1084             end = (to_location[0] - start_row, to_location[1] - start_col)
  1084             col = 1 if (start_row != from_location[0]) else (from_location[1] - start_col)
       
  1085             start = (row, col)
       
  1086 
       
  1087             row = 1 if to_location[0] < start_row else (to_location[0] - start_row)            
       
  1088             col = 1 if (start_row != to_location[0]) else (to_location[1] - start_col)
       
  1089             end = (row, col)
       
  1090             
  1085             if self.AppFrame is not None:
  1091             if self.AppFrame is not None:
  1086                 self.AppFrame.ShowError(infos, start, end)
  1092                 self.AppFrame.ShowError(infos, start, end)
  1087 
  1093 
  1088     _IECCodeView = None
  1094     _IECCodeView = None
  1089     def _showIECcode(self):
  1095     def _showIECcode(self):