Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Lorenzo2016-03-29 11:43:41 +0000
committerGerrit Code Review @ Eclipse.org2016-03-30 09:09:16 +0000
commitac7008ae34d3b7487e6e17191efade1fb8f920b8 (patch)
treec9e147bab2d90ea4d8fe781f419280e551a8f6fb
parente4f73c546d64c6df0c1e0da3058ff0205d9c11e6 (diff)
downloadorg.eclipse.papyrus-ac7008ae34d3b7487e6e17191efade1fb8f920b8.tar.gz
org.eclipse.papyrus-ac7008ae34d3b7487e6e17191efade1fb8f920b8.tar.xz
org.eclipse.papyrus-ac7008ae34d3b7487e6e17191efade1fb8f920b8.zip
bug 490318: [Composite][IBD][SysML 1.1] Graphical shift to the left of nested parts - This commit fixes the horizontal (x) alignment
Change-Id: I34cb510734060ec95e7c2e9130c431491769cf9c Signed-off-by: Vincent Lorenzo <vincent.lorenzo@cea.fr>
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/figure/node/AutomaticCompartmentLayoutManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/figure/node/AutomaticCompartmentLayoutManager.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/figure/node/AutomaticCompartmentLayoutManager.java
index 6aba9faa2c4..9b1bf660fb0 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/figure/node/AutomaticCompartmentLayoutManager.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/figure/node/AutomaticCompartmentLayoutManager.java
@@ -320,7 +320,7 @@ public class AutomaticCompartmentLayoutManager extends AbstractLayout {
* The previously filled bound
*/
protected void fillBoundsForOther(IFigure container, Rectangle bound, Rectangle previous) {
- bound.x = container.getBounds().x;
+ bound.x = container.getBounds().x + 1; //+1, see bug 490318, restore +1 to fix shift from Papyrus Luna to Papyrus Mars
bound.width = container.getBounds().width;
if (previous == null) {
bound.y = container.getBounds().y + 3;

Back to the top