diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-04-17 15:22:09 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-04-17 15:22:09 -0400 |
commit | ec102f94e1105a6c9f445a0cde6c2dd1b6ea4b8b (patch) | |
tree | 970d269534121d51960bc56a5d6092d88c6baf97 /libs/canvas/line.cc | |
parent | 9727a2311100d87bba1ceac62e5a9e42e9420cd8 (diff) |
various work waveview amplitude mgmt; fix playhead cursor drag from timebar click
Diffstat (limited to 'libs/canvas/line.cc')
-rw-r--r-- | libs/canvas/line.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libs/canvas/line.cc b/libs/canvas/line.cc index 2894a80a89..c409f48c7d 100644 --- a/libs/canvas/line.cc +++ b/libs/canvas/line.cc @@ -76,6 +76,20 @@ Line::set (Duple a, Duple b) } void +Line::set_x (Coord x0, Coord x1) +{ + begin_change (); + + _points[0].x = x0; + _points[1].x = x1; + + _bounding_box_dirty = true; + end_change (); + + DEBUG_TRACE (PBD::DEBUG::CanvasItemsDirtied, "canvas item dirty: line change\n"); +} + +void Line::set_x0 (Coord x0) { begin_change (); |