On Thu October 29 2009, Thomas Zander wrote: > could someone please review r1042478 for backporting? > > On add/remove shape make sure we do collision detection > BUG:185342 > > void KoShapeManager::addAdditional(KoShape *shape) > @@ -218,6 +219,8 @@ > > void KoShapeManager::remove(KoShape *shape) > { > + notifyShapeChanged(shape); > + d->updateTree(); This does do some unnecessary stuff like adding removing the the shape from the tree, and does the shape collision detection twice which is not needed when removing a shape. How about not calling updateTree but instead a function that does one shape collision detection when a shape is removed? This will also avoid calling update tree for every shape removed which is wrong as updateTree is specially there to handle aggregated updates of shapes which is circumvented by the patch. > shape->update(); > shape->removeShapeManager(this); > d->selection->deselect(shape); > Thorsten _______________________________________________ koffice-devel mailing list koffice-devel@kde.org https://mail.kde.org/mailman/listinfo/koffice-devel