aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scatterplot.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scatterplot.cpp b/scatterplot.cpp
index 47009ae..91c85e5 100644
--- a/scatterplot.cpp
+++ b/scatterplot.cpp
@@ -648,7 +648,7 @@ void Scatterplot::mouseReleaseEvent(QMouseEvent *event)
m_interactionState = STATE_NONE;
} else {
m_interactionState = STATE_SELECTED;
- m_selection[m_brushedItem] = true;
+ m_selection[m_brushedItem] = !m_selection[m_brushedItem];
}
emit selectionInteractivelyChanged(m_selection);