# HG changeset patch # User Jacob Dawid # Date 1341262043 -7200 # Node ID 422b0b2ce5f8062717baf4ec295e080e89ea3abe # Parent 9c07dde77266e2687c55a9446d9f69c9bfb9acc2 Second attempt to fix setting breakpoints. * file-editor-tab.cc: Removed +1 offset in line numbers. * octave-event.h: Added +1 offset when setting a breakpoint. diff -r 9c07dde77266 -r 422b0b2ce5f8 gui/src/m-editor/file-editor-tab.cc --- a/gui/src/m-editor/file-editor-tab.cc Mon Jul 02 18:33:34 2012 +0200 +++ b/gui/src/m-editor/file-editor-tab.cc Mon Jul 02 22:47:23 2012 +0200 @@ -215,7 +215,7 @@ (new octave_add_breakpoint_event (*this, path.toStdString (), function_name.toStdString (), - line + 1)); + line)); } void @@ -232,7 +232,7 @@ (new octave_remove_breakpoint_event (*this, path.toStdString (), function_name.toStdString (), - line + 1)); + line)); } void diff -r 9c07dde77266 -r 422b0b2ce5f8 gui/src/octave-adapter/octave-event.h --- a/gui/src/octave-adapter/octave-event.h Mon Jul 02 18:33:34 2012 +0200 +++ b/gui/src/octave-adapter/octave-event.h Mon Jul 02 22:47:23 2012 +0200 @@ -267,7 +267,7 @@ bool perform () { bp_table::intmap intmap; - intmap[0] = _line; + intmap[0] = _line + 1; std::string previous_directory = octave_env::get_current_directory (); octave_env::chdir (_path);