Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Redor2017-08-17 14:14:35 +0000
committerFlorian Barbin2017-08-25 14:31:16 +0000
commit69c1fb1fbcd980be8282cc8ac84ce8b3f4996202 (patch)
tree3ab19eaf2f534ddaa9c212c329824f5094921c00
parent4ffdecbf8a4dde5b7217e1657269d694030e4986 (diff)
downloadorg.eclipse.sirius-69c1fb1fbcd980be8282cc8ac84ce8b3f4996202.tar.gz
org.eclipse.sirius-69c1fb1fbcd980be8282cc8ac84ce8b3f4996202.tar.xz
org.eclipse.sirius-69c1fb1fbcd980be8282cc8ac84ce8b3f4996202.zip
[520881] Fix bug in NodeQuery
Without this fix, test org.eclipse.sirius.tests.swtbot.BorderedNodeCreationTest.testBNC_OnNodeInContainer() is KO (for example). This commit fixes the remaining failures. Bug: 520881 Change-Id: I14d01a4296af919a32277c38d475132da069c881 Signed-off-by: Laurent Redor <laurent.redor@obeo.fr>
-rw-r--r--plugins/org.eclipse.sirius.diagram.ui/src-diag/org/eclipse/sirius/diagram/ui/business/api/query/NodeQuery.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.sirius.diagram.ui/src-diag/org/eclipse/sirius/diagram/ui/business/api/query/NodeQuery.java b/plugins/org.eclipse.sirius.diagram.ui/src-diag/org/eclipse/sirius/diagram/ui/business/api/query/NodeQuery.java
index 3da5e12902..337cdf9e40 100644
--- a/plugins/org.eclipse.sirius.diagram.ui/src-diag/org/eclipse/sirius/diagram/ui/business/api/query/NodeQuery.java
+++ b/plugins/org.eclipse.sirius.diagram.ui/src-diag/org/eclipse/sirius/diagram/ui/business/api/query/NodeQuery.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2013, 2016 THALES GLOBAL SERVICES.
+ * Copyright (c) 2013, 2017 THALES GLOBAL SERVICES.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -287,7 +287,7 @@ public class NodeQuery {
* @return The rectangle used for handles
*/
public Rectangle getHandleBounds() {
- Rectangle bounds = GMFHelper.getAbsoluteBounds(node);
+ Rectangle bounds = GMFHelper.getAbsoluteBounds(node, true);
if (node.getElement() instanceof DDiagramElement) {
DDiagramElement dDiagramElement = (DDiagramElement) node.getElement();
// All container styles have a specific insets.

Back to the top