Changeset 4154

Show
Ignore:
Timestamp:
06/17/08 18:15:32 (5 months ago)
Author:
ed
Message:

Adjusted the onEditJumpToLine() method to work with the new one-based LineNumber? property of the editor class.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ide/Editor.py

    r3515 r4154  
    793793        currEditor = self.CurrentEditor 
    794794        dlg = LineNumberDlg(self) 
    795         dlg.txtLine.Value = currEditor.LineNumber + 1 
     795        dlg.txtLine.Value = currEditor.LineNumber 
    796796        dlg.txtLine.Min = 1 
    797797        dlg.txtLine.Max = currEditor.LineCount 
     
    800800        dlg.show() 
    801801        if dlg.Accepted: 
    802             currEditor.LineNumber = dlg.txtLine.Value - 1 
     802            currEditor.LineNumber = dlg.txtLine.Value 
    803803        dlg.release()        
    804804