projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make region gain envelope drawing work again.
[ardour.git]
/
gtk2_ardour
/
audio_region_view.cc
diff --git
a/gtk2_ardour/audio_region_view.cc
b/gtk2_ardour/audio_region_view.cc
index 35407603fe97d454da611c9d725d3fcadc96571f..95a0c6ca00570b14c1ed5c914d1a0d7923d9dda5 100644
(file)
--- a/
gtk2_ardour/audio_region_view.cc
+++ b/
gtk2_ardour/audio_region_view.cc
@@
-1004,8
+1004,8
@@
AudioRegionView::add_gain_point_event (ArdourCanvas::Item *item, GdkEvent *ev)
/* compute vertical fractional position */
- y = 1.0 - (y / (
trackview.current_height()
- NAME_HIGHLIGHT_SIZE));
-
+ y = 1.0 - (y / (
_height
- NAME_HIGHLIGHT_SIZE));
+
/* map using gain line */
gain_line->view_to_model_y (y);