# HG changeset patch # User Pantxo Diribarne # Date 1381267097 -7200 # Node ID e7692efcbd0d316659b84749c90cccc77af4b71f # Parent 07a4597fcbac9b890ae5f517556af5d047c24a8e 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) diff -r 07a4597fcbac -r e7692efcbd0d libinterp/corefcn/graphics.cc --- a/libinterp/corefcn/graphics.cc Tue Oct 08 23:18:17 2013 +0200 +++ b/libinterp/corefcn/graphics.cc Tue Oct 08 23:18:17 2013 +0200 @@ -7669,8 +7669,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);