mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 06:07:57 +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")) {
|
if (imgUrl.contains("images")) {
|
||||||
imgPath = imgBaseUrl + "/../images/" + iconName;
|
imgPath = imgBaseUrl + "/../images/" + iconName;
|
||||||
} else {
|
} else {
|
||||||
imgPath = imgBaseUrl + imgUrl;
|
imgPath = imgBaseUrl + "/" + imgUrl;
|
||||||
}
|
}
|
||||||
elem.setAttribute("xlink:href", imgPath);
|
elem.setAttribute("xlink:href", imgPath);
|
||||||
elem.appendChild(document.createTextNode(" "));
|
elem.appendChild(document.createTextNode(" "));
|
||||||
|
@ -42,7 +42,7 @@ public class ExportTest {
|
|||||||
final ExportProperties properties = ExportProperties.create(format);
|
final ExportProperties properties = ExportProperties.create(format);
|
||||||
final ExportProperties.ImageProperties imageProperties = (ExportProperties.ImageProperties) properties;
|
final ExportProperties.ImageProperties imageProperties = (ExportProperties.ImageProperties) properties;
|
||||||
imageProperties.setSize(ExportProperties.ImageProperties.Size.LARGE);
|
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);
|
properties.setBaseImagePath(baseUrl);
|
||||||
|
|
||||||
// Write content ...
|
// Write content ...
|
||||||
|
Loading…
Reference in New Issue
Block a user