changeset 883:33157c3f0e80

Avoid completely smoothing out a curve if it alternates high/low, when zooming out far enough to use lines instead
author Chris Cannam
date Thu, 27 Nov 2014 17:39:37 +0000
parents 241688360929
children 8be34e5ef7ff
files layer/TimeValueLayer.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
 		    }
 		}