Changeset View
Changeset View
Standalone View
Standalone View
libs/flake/commands/KoShapeReorderCommand.cpp
Context not available. | |||||
88 | { | 88 | { | ||
---|---|---|---|---|---|
89 | KUndo2Command::redo(); | 89 | KUndo2Command::redo(); | ||
90 | for (int i = 0; i < d->shapes.count(); i++) { | 90 | for (int i = 0; i < d->shapes.count(); i++) { | ||
91 | // z-index cannot chage the bounding rect of the shape, so | 91 | // z-index cannot change the bounding rect of the shape, so | ||
92 | // no united updates needed | 92 | // no united updates needed | ||
93 | d->shapes.at(i)->setZIndex(d->newIndexes.at(i)); | 93 | d->shapes.at(i)->setZIndex(d->newIndexes.at(i)); | ||
94 | d->shapes.at(i)->update(); | 94 | d->shapes.at(i)->update(); | ||
Context not available. | |||||
99 | { | 99 | { | ||
100 | KUndo2Command::undo(); | 100 | KUndo2Command::undo(); | ||
101 | for (int i = 0; i < d->shapes.count(); i++) { | 101 | for (int i = 0; i < d->shapes.count(); i++) { | ||
102 | // z-index cannot chage the bounding rect of the shape, so | 102 | // z-index cannot change the bounding rect of the shape, so | ||
103 | // no united updates needed | 103 | // no united updates needed | ||
104 | d->shapes.at(i)->setZIndex(d->previousIndexes.at(i)); | 104 | d->shapes.at(i)->setZIndex(d->previousIndexes.at(i)); | ||
105 | d->shapes.at(i)->update(); | 105 | d->shapes.at(i)->update(); | ||
Context not available. |