From df9f6cbfb1aadbd925ab1aa02f24af84c682faa9 Mon Sep 17 00:00:00 2001 From: PlantUML Date: Thu, 10 Mar 2022 12:49:37 +0100 Subject: [PATCH] https://github.com/plantuml/plantuml/issues/947 --- src/net/sourceforge/plantuml/tikz/TikzGraphics.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/net/sourceforge/plantuml/tikz/TikzGraphics.java b/src/net/sourceforge/plantuml/tikz/TikzGraphics.java index 8a087bac2..ffcab551f 100644 --- a/src/net/sourceforge/plantuml/tikz/TikzGraphics.java +++ b/src/net/sourceforge/plantuml/tikz/TikzGraphics.java @@ -209,6 +209,8 @@ public class TikzGraphics { } private String definecolor(String name, Color color) { + if (color.getAlpha() == 0) + color = Color.WHITE; return "\\definecolor{" + name + "}{RGB}{" + color.getRed() + "," + color.getGreen() + "," + color.getBlue() + "}"; }