# HG changeset patch # User Jacob Dawid # Date 1341246814 -7200 # Node ID 9c07dde77266e2687c55a9446d9f69c9bfb9acc2 # Parent cff522bf80c55fbb3de4e2ab6d349924c41b7a07 Fixed offset when setting breakpoints. * file-editor-tab.cc: Adding + 1 to fix offset when adding breakpoints. diff -r cff522bf80c5 -r 9c07dde77266 gui/src/m-editor/file-editor-tab.cc --- a/gui/src/m-editor/file-editor-tab.cc Mon Jul 02 17:20:51 2012 +0200 +++ b/gui/src/m-editor/file-editor-tab.cc Mon Jul 02 18:33:34 2012 +0200 @@ -215,7 +215,7 @@ (new octave_add_breakpoint_event (*this, path.toStdString (), function_name.toStdString (), - line)); + line + 1)); } void @@ -232,7 +232,7 @@ (new octave_remove_breakpoint_event (*this, path.toStdString (), function_name.toStdString (), - line)); + line + 1)); } void