More export issues fixed.

This commit is contained in:
Paulo Gustavo Veiga 2013-02-23 13:53:56 -03:00
parent 76ccc5e6b2
commit 9049ca25aa
2 changed files with 13 additions and 9 deletions

View File

@ -290,10 +290,12 @@ public class FreemindExporter
// Font size
if (idx < countParts && part[idx].length() != 0) {
final String size = part[idx];
if (size != null && !size.isEmpty()) {
int freeSize = Integer.parseInt(size);
font.setSIZE(BigInteger.valueOf(wiseToFreeFontSize.get(freeSize)));
updated = true;
}
}
idx++;
// Font Color
@ -328,6 +330,7 @@ public class FreemindExporter
// 10 Large
// 15 Huge
static private Map<Integer, Integer> wiseToFreeFontSize = new HashMap<Integer, Integer>();
static {
wiseToFreeFontSize.put(6, 10);
wiseToFreeFontSize.put(8, 12);

View File

@ -131,7 +131,8 @@ public class TransformerController extends BaseController {
throw new IllegalArgumentException("Unsupported export format");
}
result.getModelMap().put("filename", filename);
// IE does not support spaces in the name... As usual ...
result.getModelMap().put("filename", filename.replaceAll(" ","_"));
return result;
}
}