diff -r 494a5b8c131e -r 4fdcbccbc1da branchobj.cpp --- a/branchobj.cpp Wed Apr 25 16:02:54 2007 +0000 +++ b/branchobj.cpp Mon Jul 09 10:23:39 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