From d196b2a2ced990459cbe361290ec1bc521ab0072 Mon Sep 17 00:00:00 2001 From: koldo Date: Mon, 28 Mar 2016 13:17:34 +0000 Subject: [PATCH] ScatterDraw: Compatible with old C++ git-svn-id: svn://ultimatepp.org/upp/trunk@9650 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/ScatterDraw/DataSource.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uppsrc/ScatterDraw/DataSource.cpp b/uppsrc/ScatterDraw/DataSource.cpp index 251e052b5..b1983a739 100644 --- a/uppsrc/ScatterDraw/DataSource.cpp +++ b/uppsrc/ScatterDraw/DataSource.cpp @@ -335,7 +335,8 @@ bool Spline::IsInputSane(Vector& xdata, Vector& ydata) bool first = true; double xold; - for(double x : xdata) { + for(int i = 0; i < xdata.GetCount(); ++i) { + double x = xdata[i]; if(first) xold = x; else {