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)
{
fromTopic= t;
if(toTopic!=null){
break;
}
}else if (t.getModel().getId() == toNodeId)
if (t.getModel().getId() == toNodeId)
{
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(";");
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(";");
fontStyle.append(node.getCOLOR());