Skip to content

Commit 8920261

Browse files
committed
Fix merge compilation error
Avoid GUI code in the processing code because that make the CLI fails otherwise.
1 parent f724673 commit 8920261

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/main/java/com/mxgraph/svg2xml/Svg2Xml.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import java.util.List;
2626
import java.util.Map;
2727

28-
import javax.swing.JOptionPane;
28+
//import javax.swing.JOptionPane;
2929
import javax.xml.parsers.DocumentBuilder;
3030
import javax.xml.parsers.DocumentBuilderFactory;
3131
import javax.xml.transform.OutputKeys;
@@ -662,7 +662,9 @@ else if (aspectRatio.toLowerCase().equals("variable"))
662662
}
663663
}
664664

665-
JOptionPane.showMessageDialog(gui.getFrame(), "Conversion completed.\nThe libraries are genereted in:" + destFolders);
665+
// TODO: if we need to have a dialog message in the GUI, we should
666+
// provide a PR in the upstream repository to ensure there is no GUI code here (this prevents usage of the tool with the CLI)
667+
// JOptionPane.showMessageDialog(gui.getFrame(), "Conversion completed.\nThe libraries are genereted in:" + destFolders);
666668
}
667669

668670
/**

0 commit comments

Comments
 (0)