summaryrefslogtreecommitdiff
path: root/gtk2_ardour/audio_region_view.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-09-04 16:14:01 +0200
committerRobin Gareus <robin@gareus.org>2014-09-04 16:14:01 +0200
commit70358639de97e011abff786a86b712cea283c0a4 (patch)
tree8e1c5f73b2ea4e7c4bd29c325feba99b61df529c /gtk2_ardour/audio_region_view.cc
parentdc4ee8196f3cd5c310307152e0ff479e65a808fa (diff)
Revert "cont'd work on automation-track headers (amend ba53af1c5)"
This reverts commit beb5e3e777b0e92e8dde7ee12c324b32c679ff63.
Diffstat (limited to 'gtk2_ardour/audio_region_view.cc')
-rw-r--r--gtk2_ardour/audio_region_view.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/audio_region_view.cc b/gtk2_ardour/audio_region_view.cc
index 8f5371adad..6c41272d93 100644
--- a/gtk2_ardour/audio_region_view.cc
+++ b/gtk2_ardour/audio_region_view.cc
@@ -486,7 +486,7 @@ AudioRegionView::set_height (gdouble height)
ht = (((height - 2 * wcnt) - NAME_HIGHLIGHT_SIZE) / (double) wcnt);
}
- gdouble yoff = 1 + n * (ht + 1);
+ gdouble yoff = n * (ht + 1);
waves[n]->set_height (ht);
waves[n]->set_y_position (yoff + 2);
@@ -1132,7 +1132,7 @@ AudioRegionView::create_one_wave (uint32_t which, bool /*direct*/)
ht = ((trackview.current_height() - NAME_HIGHLIGHT_SIZE) / (double) nchans);
}
- gdouble yoff = 1 + which * ht;
+ gdouble yoff = which * ht;
WaveView *wave = new WaveView (group, audio_region ());
CANVAS_DEBUG_NAME (wave, string_compose ("wave view for chn %1 of %2", which, get_item_name()));