diff -r f0fe7c36ec5c -r 43268373032d treeitem.cpp --- a/treeitem.cpp Fri Apr 09 14:24:04 2010 +0000 +++ b/treeitem.cpp Wed Jun 09 13:14:08 2010 +0000 @@ -17,7 +17,7 @@ TreeItem::TreeItem() { - cout << "Constr. TI this="<getHeading(); ti=childItems.takeFirst(); + //qDebug()<<" ti="<=0 && ngetLMO()); - } else - return NULL; + BranchItem *bi=getBranchNum(n); + if (bi) + { + BranchObj *bo=(BranchObj*)(bi->getLMO()); + if (bo) + return bo; + else + qDebug()<<"TI::getBONum bo=NULL"; + } + } + return NULL; } ImageItem* TreeItem::getImageNum (const int &n) @@ -634,14 +660,10 @@ if (xlinkCounter>0 ) { XLinkItem *xli=getXLinkNum (n); - if (!xli) return NULL; - if (xli->isBegin() ) - return (XLinkObj*)(xli->getLMO()); - else + if (xli) { - xli=xli->getPartnerXLink(); - if (!xli) return NULL; - return (XLinkObj*)(xli->getLMO()); + Link *l=xli->getLink(); + if (l) return l->getXLinkObj(); } } return NULL;