# HG changeset patch # User Andreas Weber # Date 1406532537 -7200 # Node ID d4b69559a0f7a477157b99328f5deb791541d3c1 # Parent 52e01aa1fe8b6c85bd82ba7ad30cd019a3980d54 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. diff -r 52e01aa1fe8b -r d4b69559a0f7 libinterp/corefcn/graphics.cc --- 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);