Skip to content
Browse files

fixes null pointer exception when invalid latex code is entered

  • Loading branch information...
1 parent df06f18 commit 65044437cccac73ef5c96955634bd2be378e41e3 Alex A committed Jan 13, 2011
View
2 fm-plugin-latexmath/pom.xml
@@ -4,7 +4,7 @@
<groupId>net.sf.alxa.fm</groupId>
<artifactId>fm-plugin-latexmath</artifactId>
<name>fm-plugin-latexmath</name>
- <version>0.0.3-SNAPSHOT</version>
+ <version>0.0.4-SNAPSHOT</version>
<description>A jlatexmath plugin for freemind</description>
<repositories>
View
4 fm-plugin-latexmath/src/main/java/net/sf/alxa/fm/plugins/latexmath/LatexMathNodeView.java
@@ -96,6 +96,10 @@ private void calculateSize() {
this.zoom = mapZoom;
final Insets insets = getInsets();
insets.top = paddingTop;
+ if(latexIcon==null){
+ // FIXME ugly hack
+ updateTexIcon();
+ }
final Dimension dimension = new Dimension(latexIcon.getIconWidth()
+ insets.left + insets.right, latexIcon.getIconHeight()
+ insets.top + insets.bottom);

0 comments on commit 6504443

Please sign in to comment.
Something went wrong with that request. Please try again.