diff -r 88d558ce079d -r fe3c52c49037 linkablemapobj.cpp --- a/linkablemapobj.cpp Tue Sep 04 13:53:33 2007 +0000 +++ b/linkablemapobj.cpp Wed Feb 27 16:08:45 2008 +0000 @@ -180,7 +180,7 @@ LinkableMapObj::Style LinkableMapObj::getDefLinkStyle () { - if (mapEditor==0) return UndefinedStyle; + if (!mapEditor) return UndefinedStyle; Style ls=mapEditor->getMapLinkStyle(); switch (ls) { @@ -560,10 +560,10 @@ break; } else if (typ=="bo:") - lmo=((BranchObj*)(lmo))->getBranchNum (num.toInt()); + lmo=((BranchObj*)lmo)->getBranchNum (num.toInt()); else if (typ=="fi:") - lmo=((BranchObj*)(lmo))->getFloatImageNum (num.toUInt()); + lmo=((BranchObj*)lmo)->getFloatImageNum (num.toUInt()); if (!lmo) break; if (s.contains(","))