diff -r 494a5b8c131e -r 8b7e0d5a25e9 branchobj.cpp --- a/branchobj.cpp Wed Apr 25 16:02:54 2007 +0000 +++ b/branchobj.cpp Thu Aug 09 18:34:08 2007 +0000 @@ -697,6 +697,31 @@ return NULL; } +LinkableMapObj* BranchObj::findID (QString sid) +{ + // Search branches + LinkableMapObj *lmo; + for (int i=0; ifindID (sid); + if (lmo != NULL) return lmo; + } + + // Search myself + if (sid==id) return this; + +/* + // Search float images + for (int i=0; iinBox(p) && + (floatimage.at(i) != excludeLMO) && + floatimage.at(i)->getParObj()!= excludeLMO && + floatimage.at(i)->isVisibleObj() + ) return floatimage.at(i); +*/ + return NULL; +} + void BranchObj::setHeading(QString s) { heading->setText(s); // set new heading