# HG changeset patch # User Andrej Lojdl # Date 1379448836 -7200 # Node ID 562dafc5270ad1fa792b8b5518747014fe7ddade # Parent 1647020d09ec4189e3fa1bd6364d5e274da8f2dd Better bbox forwarding from functions. diff --git a/libinterp/corefcn/txt-eng-ft.cc b/libinterp/corefcn/txt-eng-ft.cc --- 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); } diff --git a/libinterp/corefcn/txt-latex.cc b/libinterp/corefcn/txt-latex.cc --- 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 (0)); + pixels = uint8NDArray (dim_vector (4, 1, 1), static_cast (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); }