mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-12-22 19:33:48 +01:00
fixing png export test
This commit is contained in:
parent
392176430e
commit
179a76be59
@ -243,7 +243,7 @@ public class MindMap {
|
||||
|
||||
// Add namespace...
|
||||
result = result.replaceFirst("<svg ", "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" ");
|
||||
result = result.replaceAll("<image([^>]+)>", "<image$1/>");
|
||||
// result = result.replaceAll("<image([^>]+)>", "<image$1/>");
|
||||
|
||||
return result.toCharArray();
|
||||
}
|
||||
|
@ -48,6 +48,8 @@ public class ExportTest {
|
||||
final ExportProperties properties = ExportProperties.create(format);
|
||||
final ExportProperties.ImageProperties imageProperties = (ExportProperties.ImageProperties) properties;
|
||||
imageProperties.setSize(ExportProperties.ImageProperties.Size.LARGE);
|
||||
String baseUrl = "file://"+svgFile.getParentFile().getAbsolutePath()+"/../../../main/webapp/images";
|
||||
properties.setBaseImagePath(baseUrl);
|
||||
|
||||
// Write content ...
|
||||
MindMap mindMap = new MindMap();
|
||||
|
Loading…
Reference in New Issue
Block a user