From 5f7064cd55ff01b24d435d2700bd4a4f8a12d273 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Wed, 20 Jan 2016 12:47:51 +0100 Subject: Previous commit added a build error, fixing. --- barchart.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'barchart.cpp') diff --git a/barchart.cpp b/barchart.cpp index cb794ac..34f1897 100644 --- a/barchart.cpp +++ b/barchart.cpp @@ -172,7 +172,7 @@ void BarChart::updateBars(QSGNode *node) QSGNode *barNode = newBarNode(); node->prependChildNode(barNode); } - while (numValues < root->childCount()) { + while (numValues < node->childCount()) { // NOTE: as stated in docs, QSGNode's children are stored in a // linked list. Hence, this operation should be as fast as expected node->removeChildNode(node->firstChild()); -- cgit v1.2.3