Mercurial > hg > octave-lyh
changeset 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 | ceb77e004f9c |
children | 86847bd1ccf0 6bed5141fdad aa490c112c88 |
files | src/graphics.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/graphics.cc +++ b/src/graphics.cc @@ -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 ()) {