diff src/graphics.cc @ 14483:6a736395ff7d

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.
author Konstantinos Poulios <logari81@googlemail.com>
date Wed, 21 Mar 2012 01:21:25 +0100
parents 008a29999c3d
children 36cfbd23fe9f
line wrap: on
line diff
--- 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<text::properties&>
             (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 ())
             {