# HG changeset patch # User Chris Cannam # Date 1417109977 0 # Node ID 33157c3f0e80015ae745bf2e3633a9e7a684cfc5 # Parent 241688360929f5b947dcf027e7da242353b58b2b Avoid completely smoothing out a curve if it alternates high/low, when zooming out far enough to use lines instead diff -r 241688360929 -r 33157c3f0e80 layer/TimeValueLayer.cpp --- a/layer/TimeValueLayer.cpp Mon Nov 10 09:54:09 2014 +0000 +++ b/layer/TimeValueLayer.cpp Thu Nov 27 17:39:37 2014 +0000 @@ -1151,6 +1151,7 @@ // path.quadTo(x0, y0, (x0 + x1) / 2, (y0 + y1) / 2); } else { + path.lineTo(x0, y0); path.lineTo((x0 + x1) / 2, (y0 + y1) / 2); } }