diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-06-23 15:24:08 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-06-23 15:24:08 -0400 |
commit | 199ac89d409b3e0ab1064fd0e9eae9581d39d4be (patch) | |
tree | 37ce8ee73c8b3b6f17d5804d4bc3ce0811383b9d /libs | |
parent | a743e68a0c333679fd224b0f1b2ce2a8ed233eaa (diff) |
return of the zero line
Diffstat (limited to 'libs')
-rw-r--r-- | libs/canvas/wave_view.cc | 3 |
1 files changed, 1 insertions, 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<Cairo::ImageSurface>& 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<Cairo::ImageSurface>& 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 (); |