update_axis_limits
author Michael Goffioul <michael.goffioul@gmail.com>
Mon Sep 01 13:23:19 2008 +0200 (2008-09-01)
changeset 49 7747c2f2f3ed
permissions -rw-r--r--
Make hggroup to react on [xyzac]liminclude changes in its children.
     1 Make hggroup to react on [xyzac]liminclude changes in its children.
     2 
     3 diff -r 09184f7bdc07 src/ChangeLog
     4 --- a/src/ChangeLog	Mon Sep 01 09:49:31 2008 +0200
     5 +++ b/src/ChangeLog	Mon Sep 01 13:19:04 2008 +0200
     6 @@ -1,3 +1,8 @@
     7 +2008-09-01  Michael Goffioul  <michael.goffioul@gmail.com>
     8 +
     9 +	* graphics.cc (hggroup::update_axis_limits): Also reacts on
    10 +	[xyzac]liminclude changes.
    11 +
    12  2008-08-31  Michael Goffioul  <michael.goffioul@gmail.com>
    13  
    14  	* DLD-FUNCTIONS/fltk_backend.cc (fltk_backend::redraw_figure,
    15 diff -r 09184f7bdc07 src/graphics.cc
    16 --- a/src/graphics.cc	Mon Sep 01 09:49:31 2008 +0200
    17 +++ b/src/graphics.cc	Mon Sep 01 13:19:04 2008 +0200
    18 @@ -3484,32 +3484,32 @@
    19  
    20    char update_type = 0;
    21  
    22 -  if (axis_type == "xlim")
    23 +  if (axis_type == "xlim" || axis_type == "xliminclude")
    24      {
    25        get_children_limits (min_val, max_val, min_pos, kids, 'x');
    26        
    27        update_type = 'x';
    28      }
    29 -  else if (axis_type == "ylim")
    30 +  else if (axis_type == "ylim" || axis_type == "yliminclude")
    31      {
    32        get_children_limits (min_val, max_val, min_pos, kids, 'y');
    33  
    34        update_type = 'y';
    35      }
    36 -  else if (axis_type == "zlim")
    37 +  else if (axis_type == "zlim" || axis_type == "zliminclude")
    38      {
    39        get_children_limits (min_val, max_val, min_pos, kids, 'z');
    40  
    41        update_type = 'z';
    42      }
    43 -  else if (axis_type == "clim")
    44 +  else if (axis_type == "clim" || axis_type == "climinclude")
    45      {
    46        get_children_limits (min_val, max_val, min_pos, kids, 'c');
    47  
    48        update_type = 'c';
    49  
    50      }
    51 -  else if (axis_type == "alim")
    52 +  else if (axis_type == "alim" || axis_type == "aliminclude")
    53      {
    54        get_children_limits (min_val, max_val, min_pos, kids, 'a');
    55