From cbdc1679db918debc63b9f27f6c3103f44e9c08d Mon Sep 17 00:00:00 2001 From: Pablo Luna Date: Sun, 23 Jan 2011 17:20:33 -0300 Subject: [PATCH] Freemind import - Fixing text default font color --- .../com/wisemapping/importer/freemind/FreemindImporter.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wise-webapp/src/main/java/com/wisemapping/importer/freemind/FreemindImporter.java b/wise-webapp/src/main/java/com/wisemapping/importer/freemind/FreemindImporter.java index e968827b..b906d454 100755 --- a/wise-webapp/src/main/java/com/wisemapping/importer/freemind/FreemindImporter.java +++ b/wise-webapp/src/main/java/com/wisemapping/importer/freemind/FreemindImporter.java @@ -426,7 +426,8 @@ public class FreemindImporter BigInteger bigInteger = (font.getSIZE()==null || font.getSIZE().intValue() < 8) ? BigInteger.valueOf(8) : font.getSIZE(); fontStyle.append(bigInteger); fontStyle.append(";"); - fontStyle.append(node.getCOLOR()); + String color = node.getCOLOR(); + fontStyle.append((color!=null && !color.equals(""))?color:"#000000"); fontStyle.append(";"); boolean hasBold = Boolean.parseBoolean(font.getBOLD()); @@ -442,7 +443,8 @@ public class FreemindImporter { fontStyle.append(";"); fontStyle.append(";"); - fontStyle.append(node.getCOLOR()); + String color = node.getCOLOR(); + fontStyle.append((color!=null && !color.equals(""))?color:"#000000"); fontStyle.append(";"); fontStyle.append(";"); fontStyle.append(";");