changeset 18962:d4b69559a0f7

graphics.cc (axes::properties::set_rotate3d): Fix check for 2D axes * graphics.cc (axes::properties::set_rotate3d): Remove incorrect check for parent figures' ndim with calc_dimensions and replace with get_is2D. This fixes the problem in mixed 2D, 3D subplots where it was possible to enable rotate3d for 2D plots.
author Andreas Weber <andy.weber.aw@gmail.com>
date Mon, 28 Jul 2014 09:28:57 +0200
parents 52e01aa1fe8b
children a30e1d20fd3c
files libinterp/corefcn/graphics.cc
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/graphics.cc	Sun Jul 27 22:31:14 2014 +0200
+++ b/libinterp/corefcn/graphics.cc	Mon Jul 28 09:28:57 2014 +0200
@@ -6393,10 +6393,8 @@
   rotate3d.set (v, false, false);
   if (rotate3d_is ("on"))
     {
-      int ndim = calc_dimensions (gh_manager::get_object (get_parent ()));
-
       // Disable rotate3d for 2D plots
-      if (ndim == 2)
+      if (get_is2D ())
         {
           rotate3d.set ("off", false, false);
           pan.set ("on", false, false);