diff layer/TimeValueLayer.cpp @ 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 6c6e34b09688
children 4a578a360011
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);
 		    }
 		}