# HG changeset patch # User laurent # Date 1326046212 -3600 # Node ID 5d3da49e8029f86ddc03fce2e6d7b725f98c4caf # Parent 56b536118ec80b970255d852e29d42a3a11deb6d Fixing bug in displaying lines of code at the origin of matiec errors diff -r 56b536118ec8 -r 5d3da49e8029 plugger.py --- a/plugger.py Sun Jan 08 19:07:59 2012 +0100 +++ b/plugger.py Sun Jan 08 19:10:12 2012 +0100 @@ -1193,6 +1193,7 @@ f = open(self._getIECcodepath()) for i, line in enumerate(f.readlines()): + i = i + 1 if line[0] not in '\t \r\n': last_section = line @@ -1533,6 +1534,7 @@ for infos, (start_row, start_col) in chunk_infos: start = (from_location[0] - start_row, from_location[1] - start_col) end = (to_location[0] - start_row, to_location[1] - start_col) + print from_location, to_location, start_row, start_col, start, end if self.AppFrame is not None: self.AppFrame.ShowError(infos, start, end)