Fix export issue on tranformation on SVG maps produced by IE9.

This commit is contained in:
Paulo Gustavo Veiga
2012-08-28 00:13:50 -03:00
parent 8f87359b78
commit 80deb4922b
3 changed files with 360 additions and 2 deletions

View File

@@ -217,7 +217,7 @@ public class ExporterFactory {
String imgUrl = elem.getAttribute("href");
elem.removeAttribute("href");
if(imgUrl==null || imgUrl.isEmpty()){
if (imgUrl == null || imgUrl.isEmpty()) {
imgUrl = elem.getAttribute("xlink:href"); // Do not support namespaces ...
elem.removeAttribute("xlink:href");
}
@@ -347,7 +347,7 @@ public class ExporterFactory {
final int initTranslate = value.indexOf("(", pos);
final int endTranslate = value.indexOf(")", pos);
final String transate = value.substring(initTranslate + 1, endTranslate);
return transate.split(",");
return transate.contains(",") ? transate.split(",") : transate.split(" ");
}
}