mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-12-22 19:33:48 +01:00
Fix path issue during export.
This commit is contained in:
parent
973f3b9365
commit
b58141b1b8
@ -217,7 +217,7 @@ public class ExporterFactory {
|
||||
if (imgUrl.contains("images")) {
|
||||
imgPath = imgBaseUrl + "/../images/" + iconName;
|
||||
} else {
|
||||
imgPath = imgBaseUrl + imgUrl;
|
||||
imgPath = imgBaseUrl + "/" + imgUrl;
|
||||
}
|
||||
elem.setAttribute("xlink:href", imgPath);
|
||||
elem.appendChild(document.createTextNode(" "));
|
||||
|
@ -42,7 +42,7 @@ 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/icons/";
|
||||
String baseUrl = "file://"+svgFile.getParentFile().getAbsolutePath()+"/../../../main/webapp/icons";
|
||||
properties.setBaseImagePath(baseUrl);
|
||||
|
||||
// Write content ...
|
||||
|
Loading…
Reference in New Issue
Block a user