diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2015-05-21 12:55:35 -0300 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2015-05-21 18:09:16 -0300 |
commit | eb829cd70e4d7cc3d863cdc199578801c3c82f9a (patch) | |
tree | fc3d2f8fdaa94c7894a10ba6603f0de7a046cb2f /scatterplot.cpp | |
parent | b3c7ac156e1c4ac5d7455ce61e89549291ac85b1 (diff) |
Correct interaction handling.
Diffstat (limited to 'scatterplot.cpp')
-rw-r--r-- | scatterplot.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<QSGGeometryNode *>(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(); |