fix computation of Text bounding box to respect _clamped_width
This commit is contained in:
parent
1eb680f937
commit
f28fb76bd9
@ -159,7 +159,7 @@ Text::compute_bounding_box () const
|
||||
Glib::RefPtr<Pango::Context> context = Glib::wrap (gdk_pango_context_get()); // context now owns C object and will free it
|
||||
redraw (context);
|
||||
}
|
||||
_bounding_box = Rect (0, 0, _image->get_width(), _image->get_height());
|
||||
_bounding_box = Rect (0, 0, min (_clamped_width, (double) _image->get_width()), _image->get_height());
|
||||
_bounding_box_dirty = false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user