mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-01 19:37:45 +01:00
Canvas: Text item should take position into account when rendering
This commit is contained in:
parent
3055d0c1fc
commit
06d0813a1d
1 changed files with 2 additions and 1 deletions
|
|
@ -194,7 +194,7 @@ Text::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) const
|
|||
return;
|
||||
}
|
||||
|
||||
Rect self = item_to_window (Rect (0, 0, min (_clamped_width, (double)_image->get_width ()), _image->get_height ()));
|
||||
Rect self = item_to_window (Rect (_position.x, _position.y, _position.x + min (_clamped_width, (double)_image->get_width ()), _position.y + _image->get_height ()));
|
||||
Rect i = self.intersection (area);
|
||||
|
||||
if (!i) {
|
||||
|
|
@ -325,3 +325,4 @@ Text::text_width() const
|
|||
|
||||
return _width;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue