From 199ac89d409b3e0ab1064fd0e9eae9581d39d4be Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 23 Jun 2014 15:24:08 -0400 Subject: [PATCH] return of the zero line --- libs/canvas/wave_view.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/canvas/wave_view.cc b/libs/canvas/wave_view.cc index 1952770fa3..6c0cc50494 100644 --- a/libs/canvas/wave_view.cc +++ b/libs/canvas/wave_view.cc @@ -512,7 +512,6 @@ WaveView::draw_image (Cairo::RefPtr& image, PeakData* _peak context->set_line_width (0.5); context->translate (0.5, 0.0); - /* the height of the clip-indicator should be at most 7 pixels, * or 5% of the height of the waveview item. */ @@ -598,7 +597,7 @@ WaveView::draw_image (Cairo::RefPtr& image, PeakData* _peak if (tips[i].spread >= 5.0 && show_zero_line()) { context->save (); set_source_rgba (context, _zero_color); - context->move_to (0, _height/2.0); + context->move_to (i, _height/2.0); context->rel_line_to (0, 0.5); context->stroke (); context->restore ();