diff -r 7f43b93242aa -r 96402b172173 linkablemapobj.cpp --- a/linkablemapobj.cpp Mon Oct 06 11:10:20 2008 +0000 +++ b/linkablemapobj.cpp Wed Oct 29 17:42:34 2008 +0000 @@ -68,6 +68,7 @@ childPos=QPointF(0,0); link2ParPos=false; l=NULL; + p=NULL; orientation=UndefinedOrientation; linkwidth=20; thickness_start=8; @@ -214,9 +215,10 @@ if (!model) { qWarning ("LMO::getDefLinkStyle model=NULL"); - return UndefinedStyle; + //return UndefinedStyle; } Style ls=model->getMapLinkStyle(); + if (depth==0) return UndefinedStyle; switch (ls) { case Line: @@ -245,7 +247,7 @@ void LinkableMapObj::setLinkStyle(Style newstyle) { - //if (newstyle=style) return; + //if (newstyle=style) return; FIXME delLink(); style=newstyle; @@ -404,9 +406,11 @@ segment.at(i)->show(); break; case PolyLine: + if (!p) cout << "LMO::setVis p==0 (PolyLine)\n"; //FIXME if (p) p->show(); break; case PolyParabel: + if (!p) cout << "LMO::setVis p==0 (PolyParabel) "<<((BranchObj*)this)->getHeading().toStdString()<show(); break; default: