mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 22:27:55 +01:00
More export issues fixed.
This commit is contained in:
parent
76ccc5e6b2
commit
9049ca25aa
@ -290,10 +290,12 @@ public class FreemindExporter
|
|||||||
// Font size
|
// Font size
|
||||||
if (idx < countParts && part[idx].length() != 0) {
|
if (idx < countParts && part[idx].length() != 0) {
|
||||||
final String size = part[idx];
|
final String size = part[idx];
|
||||||
|
if (size != null && !size.isEmpty()) {
|
||||||
int freeSize = Integer.parseInt(size);
|
int freeSize = Integer.parseInt(size);
|
||||||
font.setSIZE(BigInteger.valueOf(wiseToFreeFontSize.get(freeSize)));
|
font.setSIZE(BigInteger.valueOf(wiseToFreeFontSize.get(freeSize)));
|
||||||
updated = true;
|
updated = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
idx++;
|
idx++;
|
||||||
|
|
||||||
// Font Color
|
// Font Color
|
||||||
@ -328,6 +330,7 @@ public class FreemindExporter
|
|||||||
// 10 Large
|
// 10 Large
|
||||||
// 15 Huge
|
// 15 Huge
|
||||||
static private Map<Integer, Integer> wiseToFreeFontSize = new HashMap<Integer, Integer>();
|
static private Map<Integer, Integer> wiseToFreeFontSize = new HashMap<Integer, Integer>();
|
||||||
|
|
||||||
static {
|
static {
|
||||||
wiseToFreeFontSize.put(6, 10);
|
wiseToFreeFontSize.put(6, 10);
|
||||||
wiseToFreeFontSize.put(8, 12);
|
wiseToFreeFontSize.put(8, 12);
|
||||||
|
@ -131,7 +131,8 @@ public class TransformerController extends BaseController {
|
|||||||
throw new IllegalArgumentException("Unsupported export format");
|
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;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user