summaryrefslogtreecommitdiff
path: root/gtk2_ardour/audio_region_view.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-09-03 19:58:33 +0200
committerRobin Gareus <robin@gareus.org>2014-09-03 20:48:20 +0200
commitbeb5e3e777b0e92e8dde7ee12c324b32c679ff63 (patch)
tree4e805fb856a579f6eeff5e5f6f933e379e7e7187 /gtk2_ardour/audio_region_view.cc
parent0ea1238479c9692a2b212cc226b783dce4f1e3c6 (diff)
cont'd work on automation-track headers (amend ba53af1c5)
now that the separator line is at the top, offset region-contents y0 by 1px.
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 6c41272d93..8f5371adad 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 = n * (ht + 1);
+ gdouble yoff = 1 + 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 = which * ht;
+ gdouble yoff = 1 + 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()));