From eb829cd70e4d7cc3d863cdc199578801c3c82f9a Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Thu, 21 May 2015 12:55:35 -0300 Subject: Correct interaction handling. --- scatterplot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scatterplot.cpp') diff --git a/scatterplot.cpp b/scatterplot.cpp index dd8d378..3335e9e 100644 --- a/scatterplot.cpp +++ b/scatterplot.cpp @@ -150,7 +150,7 @@ QSGNode *Scatterplot::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *) y = PADDING + (row[1] - ymin) / (ymax - ymin) * (height() - 2*PADDING) + yt * selected; QSGGeometry *geometry = static_cast(glyphNode)->geometry(); - geometry->setDrawingMode(m_selectedGlyphs[i] ? GL_POLYGON : GL_LINE_LOOP); + geometry->setDrawingMode(!m_selectedGlyphs[i] ? GL_POLYGON : GL_LINE_LOOP); updateCircleGeometry(geometry, GLYPH_SIZE, x, y); glyphNode->markDirty(QSGNode::DirtyGeometry); glyphNode = glyphNode->nextSibling(); -- cgit v1.2.3