# HG changeset patch # User greg # Date 1244535740 -7200 # Node ID b506dea7a103644c622f771abb4a529ec5262b5b # Parent 591ba4003d74d0f6166052d96965b16d4eb13a97 Bug that prevent to see errors in editor with double click fixed diff -r 591ba4003d74 -r b506dea7a103 PLCControler.py --- a/PLCControler.py Wed Jun 03 16:59:29 2009 +0200 +++ b/PLCControler.py Tue Jun 09 10:22:20 2009 +0200 @@ -184,6 +184,7 @@ self.FilePath = "" self.FileName = "" self.ProgramChunks = [] + self.ProgramOffset = 0 self.NextCompiledProject = None self.CurrentCompiledProject = None self.PluginTypes = [] @@ -217,6 +218,7 @@ # Initialize the project buffer self.CreateProjectBuffer(False) self.ProgramChunks = [] + self.ProgramOffset = 0 self.NextCompiledProject = self.Copy(self.Project) self.CurrentCompiledProject = None self.Buffering = False @@ -524,7 +526,8 @@ self.CurrentCompiledProject = self.NextCompiledProject def GetChunkInfos(self, from_location, to_location): - row = col = 1 + row = self.ProgramOffset + 1 + col = 1 infos = [] for chunk, chunk_infos in self.ProgramChunks: lines = chunk.split("\n") @@ -2651,6 +2654,7 @@ self.Project.RefreshCustomBlockTypes() self.CreateProjectBuffer(True) self.ProgramChunks = [] + self.ProgramOffset = 0 self.NextCompiledProject = self.Copy(self.Project) self.CurrentCompiledProject = None self.Buffering = False