[Kst] branches/work/kst/viewpaint/kst/kst
George Staikos
staikos at kde.org
Thu Jan 26 00:31:42 CET 2006
SVN commit 502438 by staikos:
merge 502164
M +3 -1 kstviewobject.cpp
--- branches/work/kst/viewpaint/kst/kst/kstviewobject.cpp #502437:502438
@@ -458,13 +458,15 @@
bool KstViewObject::removeChild(KstViewObjectPtr obj, bool recursive) {
bool rc = _children.remove(obj) > 0;
+
if (recursive) {
for (KstViewObjectList::Iterator i = _children.begin(); i != _children.end(); ++i) {
- rc = rc && (*i)->removeChild(obj, true);
+ rc = (*i)->removeChild(obj, true) && rc;
}
}
obj->_parent = 0L;
+
return rc;
}
More information about the Kst
mailing list