Mercurial > hg > octave-shane
changeset 9974:118158f10628
fix fltk backend window buttons
author | Shai Ayal <shaiay@users.sourceforge.net> |
---|---|
date | Sat, 12 Dec 2009 19:37:09 +0200 |
parents | cd8f355157b8 |
children | 14ed68363284 |
files | src/ChangeLog src/DLD-FUNCTIONS/fltk_backend.cc |
diffstat | 2 files changed, 11 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2009-12-12 Shai Ayal <shaiay@users.sourceforge.net> + + * DLD-FUNCTIONS/fltk_backend.cc (plot_window::toggle_grid, + plot_window::axis_auto): Modify the axes of the correct figure. + 2009-12-12 Shai Ayal <shaiay@users.sourceforge.net> * DLD-FUNCTIONS/fltk_backend.cc (plot_window::plot_window):
--- a/src/DLD-FUNCTIONS/fltk_backend.cc +++ b/src/DLD-FUNCTIONS/fltk_backend.cc @@ -365,14 +365,17 @@ void axis_auto (void) { octave_value_list args; - args(0) = "auto"; - feval ("axis",args); + args(0) = fp.get_currentaxes ().as_octave_value (); + args(1) = "auto"; + feval ("axis", args); mark_modified (); } void toggle_grid (void) { - feval ("grid"); + octave_value_list args; + args(0) = fp.get_currentaxes ().as_octave_value (); + feval ("grid", args); mark_modified (); }