Quich fix for export error

This commit is contained in:
Pablo Luna
2011-03-28 15:16:32 +01:00
parent bd7c83f17d
commit 92d39f0a08
7 changed files with 28 additions and 21 deletions

View File

@@ -215,10 +215,13 @@ public class MindMap {
return tags;
}
public char[] generateSvgXml()
public char[] generateSvgXml(String mapSvg)
throws IOException, JAXBException {
String svgText = mapSvg;
final MindMapNative mindmapNativeBrowser = this.getNativeBrowser();
String svgText = mindmapNativeBrowser.getUnzippedSvgXml();
if(svgText==null){
svgText = mindmapNativeBrowser.getUnzippedSvgXml();
}
if (svgText == null || svgText.length() == 0) {
// The map must be saved using IE. Convert VML to SVG.
@@ -265,8 +268,8 @@ public class MindMap {
this.creationTime = creationTime;
}
public void export(final ExportProperties properties, OutputStream output) throws JAXBException, TranscoderException, TransformerException, IOException, ParserConfigurationException, ExportException, SAXException, XMLStreamException {
SvgExporter.export(properties, this, output);
public void export(final ExportProperties properties, OutputStream output, String mapSvg) throws JAXBException, TranscoderException, TransformerException, IOException, ParserConfigurationException, ExportException, SAXException, XMLStreamException {
SvgExporter.export(properties, this, output, mapSvg);
}
public void setOwner(User owner) {