Fix path issue during export.

This commit is contained in:
Paulo Gustavo Veiga 2011-05-05 16:50:12 -03:00
parent 973f3b9365
commit b58141b1b8
2 changed files with 2 additions and 2 deletions

View File

@ -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(" "));

View File

@ -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 ...