comparison libinterp/corefcn/graphics.cc @ 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
comparison
equal deleted inserted replaced
18961:52e01aa1fe8b 18962:d4b69559a0f7
6391 axes::properties::set_rotate3d (const octave_value& v) 6391 axes::properties::set_rotate3d (const octave_value& v)
6392 { 6392 {
6393 rotate3d.set (v, false, false); 6393 rotate3d.set (v, false, false);
6394 if (rotate3d_is ("on")) 6394 if (rotate3d_is ("on"))
6395 { 6395 {
6396 int ndim = calc_dimensions (gh_manager::get_object (get_parent ()));
6397
6398 // Disable rotate3d for 2D plots 6396 // Disable rotate3d for 2D plots
6399 if (ndim == 2) 6397 if (get_is2D ())
6400 { 6398 {
6401 rotate3d.set ("off", false, false); 6399 rotate3d.set ("off", false, false);
6402 pan.set ("on", false, false); 6400 pan.set ("on", false, false);
6403 } 6401 }
6404 else 6402 else