mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
fix measure line drawing (convert to window coords for intersection check)
This commit is contained in:
parent
248e37ac0c
commit
7dc9bf157b
1 changed files with 1 additions and 1 deletions
|
|
@ -103,7 +103,6 @@ LineSet::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) const
|
|||
Rect self;
|
||||
const double shift = l.width * 0.5;
|
||||
|
||||
|
||||
if (_orientation == Horizontal) {
|
||||
self = Rect (0, l.pos - (l.width/2.0), _extent, l.pos + (l.width/2.0));
|
||||
if (fmod (l.width, 2.)) {
|
||||
|
|
@ -116,6 +115,7 @@ LineSet::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) const
|
|||
}
|
||||
}
|
||||
|
||||
self = item_to_window (self);
|
||||
Rect isect = self.intersection (area);
|
||||
|
||||
if (!isect) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue