Merge branch 'wise-org-pela' of ssh://wisemapping.com/var/git-repos/wise-source into wise-org-pela

This commit is contained in:
Pablo Luna 2011-05-06 15:29:48 +01:00
commit 1a06cf3658
2 changed files with 3 additions and 3 deletions

View File

@ -215,9 +215,9 @@ public class ExporterFactory {
// Hack for backward compatibility . This can be removed in 2012. :)
String imgPath;
if (imgUrl.contains("images")) {
imgPath = imgBaseUrl + "../images/" + iconName;
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 ...