Freemind Import - Fixing relationshis in loop

This commit is contained in:
Pablo Luna 2011-01-11 18:54:20 -03:00
parent be4cebf64b
commit 8db75a940d
2 changed files with 6 additions and 8 deletions

View File

@ -629,15 +629,13 @@ mindplot.MindmapDesigner.prototype._buildRelationship = function (model) {
if (t.getModel().getId() == fromNodeId) if (t.getModel().getId() == fromNodeId)
{ {
fromTopic= t; fromTopic= t;
if(toTopic!=null){ }
break; if (t.getModel().getId() == toNodeId)
}
}else if (t.getModel().getId() == toNodeId)
{ {
toTopic= t; toTopic= t;
if(fromTopic!=null){ }
break; if(toTopic!=null && fromTopic!=null){
} break;
} }
} }

View File

@ -377,7 +377,7 @@ public class FreemindImporter
{ {
fontStyle.append(fixFontName(font)); fontStyle.append(fixFontName(font));
fontStyle.append(";"); fontStyle.append(";");
BigInteger bigInteger = font.getSIZE().intValue() < 8 ? BigInteger.valueOf(8) : font.getSIZE(); BigInteger bigInteger = (font.getSIZE()==null || font.getSIZE().intValue() < 8) ? BigInteger.valueOf(8) : font.getSIZE();
fontStyle.append(bigInteger); fontStyle.append(bigInteger);
fontStyle.append(";"); fontStyle.append(";");
fontStyle.append(node.getCOLOR()); fontStyle.append(node.getCOLOR());