aboutsummaryrefslogtreecommitdiff
path: root/barchart.cpp
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2016-01-20 12:47:51 +0100
committerSamuel Fadel <samuelfadel@gmail.com>2016-01-20 12:47:51 +0100
commit5f7064cd55ff01b24d435d2700bd4a4f8a12d273 (patch)
tree1c8fa7b6e61185d7bd5cc545d0845a50912cff0e /barchart.cpp
parentcbc0e75760a4bff62db8d715a366d819635532ba (diff)
Previous commit added a build error, fixing.
Diffstat (limited to 'barchart.cpp')
-rw-r--r--barchart.cpp2
1 files changed, 1 insertions, 1 deletions
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());