Mercurial > hg > octave-nkf
diff libinterp/corefcn/graphics.cc @ 17607:07a4597fcbac
graphics.cc: don't ask for (orphan) dummy axes parent properties.
* axes::properties::get_boundingbox : get default figure size if parent
object is invalid (Bug # 39371)
author | Pantxo Diribarne <pantxo.diribarne@gmail.com> |
---|---|
date | Tue, 08 Oct 2013 23:18:17 +0200 |
parents | 234731d524c2 |
children | e7692efcbd0d |
line wrap: on
line diff
--- a/libinterp/corefcn/graphics.cc +++ b/libinterp/corefcn/graphics.cc @@ -5569,8 +5569,11 @@ { graphics_object obj = gh_manager::get_object (get_parent ()); - parent_size = - obj.get_properties ().get_boundingbox (true).extract_n (0, 2, 1, 2); + if (obj.valid_object ()) + parent_size = + obj.get_properties ().get_boundingbox (true).extract_n (0, 2, 1, 2); + else + parent_size = default_figure_position (); } pos = convert_position (pos, get_units (), "pixels", parent_size);