aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2016-02-09 13:10:02 -0200
committerSamuel Fadel <samuelfadel@gmail.com>2016-02-09 13:10:02 -0200
commit962114b867c044240919ebc558c0b25f105db963 (patch)
treefbf4c347ccb18fb87278fd125c5c2bfe276bc421
parente2653b8b0ff84b277b1e42fcb45acc608b87a385 (diff)
Scatterplot: brush-selecting now toggles selection state.
-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);