mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-08 22:55:44 +01:00
fix computation of Text bounding box to respect _clamped_width
This commit is contained in:
parent
1eb680f937
commit
f28fb76bd9
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue