Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Lorenzo2016-03-29 11:43:41 +0000
committerVincent Lorenzo2016-03-29 12:42:21 +0000
commit23cffc4ea24c7f4275f33c25c283bc47494a03e2 (patch)
tree3aaeafeb5866286b3d3c8098b5185f64087c4848
parent6757216aa388c3fdd940e6c9d79ccf957aa2ad48 (diff)
downloadorg.eclipse.papyrus-23cffc4ea24c7f4275f33c25c283bc47494a03e2.tar.gz
org.eclipse.papyrus-23cffc4ea24c7f4275f33c25c283bc47494a03e2.tar.xz
org.eclipse.papyrus-23cffc4ea24c7f4275f33c25c283bc47494a03e2.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