mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 20:55:48 +01:00
Fix framed curve thinko.
- in FramedCurve, the first _point is used for the bounding box. Don't confuse this with actual data.
This commit is contained in:
parent
260058a4a9
commit
62be6b2ed8
1 changed files with 1 additions and 4 deletions
|
|
@ -203,15 +203,12 @@ FramedCurve::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) c
|
|||
|
||||
/* a redraw may have been requested between the last sample and the last point.*/
|
||||
|
||||
const Duple first_point = Duple (samples[left].x, samples[left].y);
|
||||
Duple last_point = Duple (samples[right].x, samples[right].y);
|
||||
Duple first_point = Duple (samples[left].x, samples[left].y);
|
||||
|
||||
if (draw.x1 > last_point.x) {
|
||||
last_point = Duple (_points.back().x, _points.back().y);
|
||||
}
|
||||
if (draw.x0 < first_point.x) {
|
||||
first_point = Duple (_points.front().x, _points.front().y);
|
||||
}
|
||||
|
||||
window_space = item_to_window (first_point);
|
||||
context->move_to (window_space.x, window_space.y);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue