Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsboyko2014-08-05 10:27:56 -0400
committerCamille Letavernier2014-08-07 08:24:03 -0400
commitd4f84988b194f95a55d0e4e4578bfbcbce31b2e1 (patch)
treeef7c43d1416e223bfbc5dd0a8b843f06d362ad31 /plugins
parentec9e7064748f00f1cbaea710103064b1738356b8 (diff)
downloadorg.eclipse.papyrus-d4f84988b194f95a55d0e4e4578bfbcbce31b2e1.tar.gz
org.eclipse.papyrus-d4f84988b194f95a55d0e4e4578bfbcbce31b2e1.tar.xz
org.eclipse.papyrus-d4f84988b194f95a55d0e4e4578bfbcbce31b2e1.zip
[437605] - Export Sequence Diagram to Images
Change-Id: I70b6a5c7efa036fd023c90ee15e63fb98703bbfe Signed-off-by: sboyko <serg.boyko2011@gmail.com>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/src/org/eclipse/papyrus/uml/diagram/sequence/edit/parts/ContinuationEditPart.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/src/org/eclipse/papyrus/uml/diagram/sequence/edit/parts/ContinuationEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/src/org/eclipse/papyrus/uml/diagram/sequence/edit/parts/ContinuationEditPart.java
index 6dfee63aa00..0cf61fa2092 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/src/org/eclipse/papyrus/uml/diagram/sequence/edit/parts/ContinuationEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/src/org/eclipse/papyrus/uml/diagram/sequence/edit/parts/ContinuationEditPart.java
@@ -258,6 +258,16 @@ public class ContinuationEditPart extends AbstractBorderItemEditPart {
*/
@Override
protected void setLineWidth(int width) {
+ /**
+ * Bug 437605 - Export Sequence Diagram to Images
+ *
+ * Guard against negative line width
+ * @see org.eclipse.gmf.runtime.diagram.ui.editparts.ResizableCompartmentEditPart#setLineWidth(int width)
+ */
+ if (width < 0) {
+ width = 1;
+ }
+
if(primaryShape instanceof Shape) {
((Shape)primaryShape).setLineWidth(width);
}

Back to the top