mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-21 06:06:25 +01:00
use window-based coordinates when picking current item so that we get per-item (per-scroll-group,really) computation of position and coverage.
This commit is contained in:
parent
bed0c78432
commit
f60e579653
10 changed files with 39 additions and 22 deletions
|
|
@ -235,7 +235,7 @@ Curve::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) const
|
|||
bool
|
||||
Curve::covers (Duple const & pc) const
|
||||
{
|
||||
Duple point = canvas_to_item (pc);
|
||||
Duple point = window_to_item (pc);
|
||||
|
||||
/* O(N) N = number of points, and not accurate */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue