Mercurial > hg > octave-lojdl
changeset 17458:562dafc5270a
Better bbox forwarding from functions.
author | Andrej Lojdl <andrej.lojdl@gmail.com> |
---|---|
date | Tue, 17 Sep 2013 22:13:56 +0200 |
parents | 1647020d09ec |
children | 981103844b51 |
files | libinterp/corefcn/txt-eng-ft.cc libinterp/corefcn/txt-latex.cc |
diffstat | 2 files changed, 3 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/txt-eng-ft.cc +++ b/libinterp/corefcn/txt-eng-ft.cc @@ -925,9 +925,7 @@ Matrix bounding_box = box; - box = alignment (halign, valign, bounding_box); - - bounding_box = box; + bounding_box = alignment (halign, valign, bounding_box); box = rotate_bounding_box (rot_mode, bounding_box); }
--- a/libinterp/corefcn/txt-latex.cc +++ b/libinterp/corefcn/txt-latex.cc @@ -359,7 +359,7 @@ } else { - pixels = uint8NDArray (dim_vector (4, 10, 10), static_cast<uint8_t> (0)); + pixels = uint8NDArray (dim_vector (4, 1, 1), static_cast<uint8_t> (0)); } int rot_mode = rotation_to_mode (rotation); @@ -374,9 +374,7 @@ Matrix bounding_box = bbox; - bbox = alignment (halign, valign, bounding_box); - - bounding_box = bbox; + bounding_box = alignment (halign, valign, bounding_box); bbox = rotate_bounding_box (rot_mode, bounding_box); }