From f4d954c3eefe9693057b0e406fac82b348b217d0 Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Fri, 28 Feb 2020 09:13:31 +0000 Subject: [PATCH] Initialise Calc member variables .. rather egregiously did not set any to zero etc and expected cummulative ops to just work. they didn't. --- src/Charts/GenericSelectTool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Charts/GenericSelectTool.h b/src/Charts/GenericSelectTool.h index 16a0eb0d7..9cca13da6 100644 --- a/src/Charts/GenericSelectTool.h +++ b/src/Charts/GenericSelectTool.h @@ -51,7 +51,7 @@ class GenericLegend; class GenericCalculator { public: - GenericCalculator() {} + GenericCalculator() { initialise(); } void initialise(); void addPoint(QPointF);