Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jgraph/drawio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/webapp/js/diagramly/Editor.js')
-rw-r--r--src/main/webapp/js/diagramly/Editor.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/webapp/js/diagramly/Editor.js b/src/main/webapp/js/diagramly/Editor.js
index d6a8b7aa..d61823ca 100644
--- a/src/main/webapp/js/diagramly/Editor.js
+++ b/src/main/webapp/js/diagramly/Editor.js
@@ -5945,8 +5945,10 @@
{
if (style != null)
{
- var fg = mxUtils.hex2rgba(this.defaultForegroundColor);
- var bg = mxUtils.hex2rgba(this.defaultPageBackgroundColor);
+ var bg = mxUtils.hex2rgba((this.defaultPageBackgroundColor == 'transparent') ?
+ '#ffffff' : this.defaultPageBackgroundColor);
+ var fg = mxUtils.hex2rgba((this.defaultForegroundColor == 'transparent') ?
+ '#000000' : this.defaultForegroundColor);
this.replaceDefaultColor(style, mxConstants.STYLE_FONTCOLOR, fg);
this.replaceDefaultColor(style, mxConstants.STYLE_FILLCOLOR, bg);