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