linkablemapobj.cpp
changeset 717 bd979a001163
parent 594 88d558ce079d
child 721 12958f987bcf
     1.1 --- a/linkablemapobj.cpp	Tue Sep 04 13:53:33 2007 +0000
     1.2 +++ b/linkablemapobj.cpp	Mon Jul 14 09:16:48 2008 +0000
     1.3 @@ -180,7 +180,7 @@
     1.4  
     1.5  LinkableMapObj::Style LinkableMapObj::getDefLinkStyle ()
     1.6  {
     1.7 -	if (mapEditor==0) return UndefinedStyle;
     1.8 +	if (!mapEditor) return UndefinedStyle;
     1.9  	Style ls=mapEditor->getMapLinkStyle();
    1.10  	switch (ls)
    1.11  	{
    1.12 @@ -560,10 +560,10 @@
    1.13  				break;
    1.14  		} else
    1.15  			if (typ=="bo:")
    1.16 -				lmo=((BranchObj*)(lmo))->getBranchNum (num.toInt());
    1.17 +				lmo=((BranchObj*)lmo)->getBranchNum (num.toInt());
    1.18  			else
    1.19  				if (typ=="fi:")
    1.20 -					lmo=((BranchObj*)(lmo))->getFloatImageNum (num.toUInt());
    1.21 +					lmo=((BranchObj*)lmo)->getFloatImageNum (num.toUInt());
    1.22  		if (!lmo) break;
    1.23  		
    1.24  		if (s.contains(","))