fixing print

This commit is contained in:
Pablo Luna 2011-04-06 19:45:23 +01:00
parent 002dba3094
commit 1a69d0b3c3
2 changed files with 3 additions and 2 deletions

View File

@ -131,7 +131,7 @@ public class ExportController extends BaseMultiActionController {
baseUrl = "http://www.wisemapping.com/images"; baseUrl = "http://www.wisemapping.com/images";
} else { } else {
final ServletContext servletContext = this.getServletContext(); final ServletContext servletContext = this.getServletContext();
baseUrl = "file://" + servletContext.getRealPath("/icons/"); baseUrl = "file://" + servletContext.getRealPath("/icons/")+"/";
} }
properties.setBaseImagePath(baseUrl); properties.setBaseImagePath(baseUrl);
} }

View File

@ -286,7 +286,8 @@ public class ExporterFactory {
// Add namespace... // Add namespace...
result = result.replaceFirst("<svg ", "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" "); result = result.replaceFirst("<svg ", "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" ");
result = result.replaceAll("/<image([^>]+)//?>/", "<image$1></image>"); result = result.replaceAll("<image([^>]+)>", "<image$1/>");
result = result.replaceAll("<image([^>]+)//+>", "<image$1></image>");
return result.toCharArray(); return result.toCharArray();
} }