Make hggroup to react on [xyzac]liminclude changes in its children.
authorMichael Goffioul <michael.goffioul@gmail.com>
Mon Sep 01 13:23:19 2008 +0200 (18 months ago)
changeset 497747c2f2f3ed
parent 484d891209215e
child 50b62d64acfc08
Make hggroup to react on [xyzac]liminclude changes in its children.
series
update_axis_limits
       1 --- a/series	Mon Sep 01 09:49:02 2008 +0200
       2 +++ b/series	Mon Sep 01 13:23:19 2008 +0200
       3 @@ -2,3 +2,4 @@
       4  mkoctfile_cpp_cleanup_o_files
       5  octave_bug_win32
       6  msvc_compile_fix
       7 +update_axis_limits
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/update_axis_limits	Mon Sep 01 13:23:19 2008 +0200
     1.3 @@ -0,0 +1,55 @@
     1.4 +Make hggroup to react on [xyzac]liminclude changes in its children.
     1.5 +
     1.6 +diff -r 09184f7bdc07 src/ChangeLog
     1.7 +--- a/src/ChangeLog	Mon Sep 01 09:49:31 2008 +0200
     1.8 ++++ b/src/ChangeLog	Mon Sep 01 13:19:04 2008 +0200
     1.9 +@@ -1,3 +1,8 @@
    1.10 ++2008-09-01  Michael Goffioul  <michael.goffioul@gmail.com>
    1.11 ++
    1.12 ++	* graphics.cc (hggroup::update_axis_limits): Also reacts on
    1.13 ++	[xyzac]liminclude changes.
    1.14 ++
    1.15 + 2008-08-31  Michael Goffioul  <michael.goffioul@gmail.com>
    1.16 + 
    1.17 + 	* DLD-FUNCTIONS/fltk_backend.cc (fltk_backend::redraw_figure,
    1.18 +diff -r 09184f7bdc07 src/graphics.cc
    1.19 +--- a/src/graphics.cc	Mon Sep 01 09:49:31 2008 +0200
    1.20 ++++ b/src/graphics.cc	Mon Sep 01 13:19:04 2008 +0200
    1.21 +@@ -3484,32 +3484,32 @@
    1.22 + 
    1.23 +   char update_type = 0;
    1.24 + 
    1.25 +-  if (axis_type == "xlim")
    1.26 ++  if (axis_type == "xlim" || axis_type == "xliminclude")
    1.27 +     {
    1.28 +       get_children_limits (min_val, max_val, min_pos, kids, 'x');
    1.29 +       
    1.30 +       update_type = 'x';
    1.31 +     }
    1.32 +-  else if (axis_type == "ylim")
    1.33 ++  else if (axis_type == "ylim" || axis_type == "yliminclude")
    1.34 +     {
    1.35 +       get_children_limits (min_val, max_val, min_pos, kids, 'y');
    1.36 + 
    1.37 +       update_type = 'y';
    1.38 +     }
    1.39 +-  else if (axis_type == "zlim")
    1.40 ++  else if (axis_type == "zlim" || axis_type == "zliminclude")
    1.41 +     {
    1.42 +       get_children_limits (min_val, max_val, min_pos, kids, 'z');
    1.43 + 
    1.44 +       update_type = 'z';
    1.45 +     }
    1.46 +-  else if (axis_type == "clim")
    1.47 ++  else if (axis_type == "clim" || axis_type == "climinclude")
    1.48 +     {
    1.49 +       get_children_limits (min_val, max_val, min_pos, kids, 'c');
    1.50 + 
    1.51 +       update_type = 'c';
    1.52 + 
    1.53 +     }
    1.54 +-  else if (axis_type == "alim")
    1.55 ++  else if (axis_type == "alim" || axis_type == "aliminclude")
    1.56 +     {
    1.57 +       get_children_limits (min_val, max_val, min_pos, kids, 'a');
    1.58 +