Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Redor2016-08-02 14:14:42 +0000
committerLaurent Redor2016-08-03 13:49:53 +0000
commit1efb4840ea606e775faea4dfb1360c5ea2ea6cca (patch)
tree97da04b65e42b9d88fed642d825b14571f720645
parentc82df54339b20693bfc37094442576d3c1605c74 (diff)
downloadorg.eclipse.sirius-1efb4840ea606e775faea4dfb1360c5ea2ea6cca.tar.gz
org.eclipse.sirius-1efb4840ea606e775faea4dfb1360c5ea2ea6cca.tar.xz
org.eclipse.sirius-1efb4840ea606e775faea4dfb1360c5ea2ea6cca.zip
[498914] Consider the new bgPattern attribute in popState and pushState
In bug 491913, a new attribute bgPattern has been added to correctly handled the gradient in all kind of format for export as image. But it is not correctly set during the popState() and pushState() methods. So after drawing a shape with gradient background color, there was a side effect for following shapes. Bug: 498914 Bug: 491913 Change-Id: I17d7b370f4581ad4abe5b3545b380f99e310f522 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/tools/internal/render/SiriusGraphicsToGraphics2DAdaptor.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/org.eclipse.sirius.diagram.ui/src-diag/org/eclipse/sirius/diagram/ui/tools/internal/render/SiriusGraphicsToGraphics2DAdaptor.java b/plugins/org.eclipse.sirius.diagram.ui/src-diag/org/eclipse/sirius/diagram/ui/tools/internal/render/SiriusGraphicsToGraphics2DAdaptor.java
index 5d94be7619..36914ea000 100644
--- a/plugins/org.eclipse.sirius.diagram.ui/src-diag/org/eclipse/sirius/diagram/ui/tools/internal/render/SiriusGraphicsToGraphics2DAdaptor.java
+++ b/plugins/org.eclipse.sirius.diagram.ui/src-diag/org/eclipse/sirius/diagram/ui/tools/internal/render/SiriusGraphicsToGraphics2DAdaptor.java
@@ -159,6 +159,7 @@ public class SiriusGraphicsToGraphics2DAdaptor extends Graphics implements Drawa
font = state.font;
fgColor = state.fgColor;
bgColor = state.bgColor;
+ bgPattern = state.bgPattern;
XorMode = state.XorMode;
alpha = state.alpha;
graphicHints = state.graphicHints;
@@ -939,6 +940,7 @@ public class SiriusGraphicsToGraphics2DAdaptor extends Graphics implements Drawa
setBackgroundColor(state.bgColor);
setForegroundColor(state.fgColor);
+ setBackgroundPattern(state.bgPattern);
setLineAttributes(state.lineAttributes);
setXORMode(state.XorMode);

Back to the top