# HG changeset patch # User Konstantinos Poulios # Date 1332289285 -3600 # Node ID 6a736395ff7d0ee577ea80336eec367b99b4441e # Parent ceb77e004f9ce6e4412a28d6c29b91da16d63540 fix wrong axes extents for text elements with custom units (bug #35856) * graphics.cc (axes::properties::get_extent): Take units of text positions into account. diff -r ceb77e004f9c -r 6a736395ff7d src/graphics.cc --- a/src/graphics.cc Tue Mar 20 21:58:42 2012 +0100 +++ b/src/graphics.cc Wed Mar 21 01:21:25 2012 +0100 @@ -5577,7 +5577,7 @@ text::properties& text_props = reinterpret_cast (gh_manager::get_object (text_handle).get_properties ()); - Matrix text_pos = text_props.get_position ().matrix_value (); + Matrix text_pos = text_props.get_data_position (); text_pos = xform.transform (text_pos(0), text_pos(1), text_pos(2)); if (text_props.get_string ().is_empty ()) {