diff -r 7eb4e5529c82 -r 954221e01e4e linkablemapobj.cpp --- a/linkablemapobj.cpp Mon Jan 14 16:26:59 2008 +0000 +++ b/linkablemapobj.cpp Mon Jan 14 16:26:59 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(","))