# 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 --git a/gui/src/m-editor/file-editor-tab.cc b/gui/src/m-editor/file-editor-tab.cc --- a/gui/src/m-editor/file-editor-tab.cc +++ b/gui/src/m-editor/file-editor-tab.cc @@ -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