mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-21 12:55:57 +01:00
Canvas: Text item should take position into account when rendering
This commit is contained in:
parent
1baa8d68c7
commit
d6fa458f3b
1 changed files with 2 additions and 1 deletions
|
|
@ -192,7 +192,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) {
|
||||
|
|
@ -323,3 +323,4 @@ Text::text_width() const
|
|||
|
||||
return _width;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue