summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorujhelyiz2011-09-23 08:33:15 (EDT)
committerFabian Steeg2011-09-25 19:02:54 (EDT)
commit5df263d593b977c00c5d9c745993ea21951d802c (patch)
treec7498d38c9168c4144d5e8f52761bee15442c58e
parent8b6b087490cf3a340107397c84a821b8dc818db2 (diff)
downloadorg.eclipse.gef4-5df263d593b977c00c5d9c745993ea21951d802c.zip
org.eclipse.gef4-5df263d593b977c00c5d9c745993ea21951d802c.tar.gz
org.eclipse.gef4-5df263d593b977c00c5d9c745993ea21951d802c.tar.bz2
Minor update to deselection handling in Graph widgets
-rw-r--r--org.eclipse.zest.core/src/org/eclipse/zest/core/widgets/Graph.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.zest.core/src/org/eclipse/zest/core/widgets/Graph.java b/org.eclipse.zest.core/src/org/eclipse/zest/core/widgets/Graph.java
index a573a8c..c889a06 100644
--- a/org.eclipse.zest.core/src/org/eclipse/zest/core/widgets/Graph.java
+++ b/org.eclipse.zest.core/src/org/eclipse/zest/core/widgets/Graph.java
@@ -791,7 +791,7 @@ public class Graph extends FigureCanvas implements IContainer {
// being held down, then select
// nothing
if (figureUnderMouse == null || figureUnderMouse == Graph.this) {
- if ((me.getState() & SWT.MOD1) != 0) {
+ if ((me.getState() & SWT.MOD1) == 0) {
clearSelection();
if (hasSelection) {
fireWidgetSelectedEvent(null);