mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 14:17:57 +01:00
More export issues fixed.
This commit is contained in:
parent
76ccc5e6b2
commit
9049ca25aa
@ -290,9 +290,11 @@ 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];
|
||||||
int freeSize = Integer.parseInt(size);
|
if (size != null && !size.isEmpty()) {
|
||||||
font.setSIZE(BigInteger.valueOf(wiseToFreeFontSize.get(freeSize)));
|
int freeSize = Integer.parseInt(size);
|
||||||
updated = true;
|
font.setSIZE(BigInteger.valueOf(wiseToFreeFontSize.get(freeSize)));
|
||||||
|
updated = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
idx++;
|
idx++;
|
||||||
|
|
||||||
@ -327,12 +329,13 @@ public class FreemindExporter
|
|||||||
// 8 Normal
|
// 8 Normal
|
||||||
// 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);
|
||||||
wiseToFreeFontSize.put(10,18);
|
wiseToFreeFontSize.put(10, 18);
|
||||||
wiseToFreeFontSize.put(15,24);
|
wiseToFreeFontSize.put(15, 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -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