Changeset View
Changeset View
Standalone View
Standalone View
lib/resize/resizeimageoperation.cpp
Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Line(s) | |||||
84 | 84 | | |||
85 | void ResizeImageOperation::undo() | 85 | void ResizeImageOperation::undo() | ||
86 | { | 86 | { | ||
87 | if (!document()->editor()) { | 87 | if (!document()->editor()) { | ||
88 | qWarning() << "!document->editor()"; | 88 | qWarning() << "!document->editor()"; | ||
89 | return; | 89 | return; | ||
90 | } | 90 | } | ||
91 | document()->editor()->setImage(d->mOriginalImage); | 91 | document()->editor()->setImage(d->mOriginalImage); | ||
92 | finishUndoJob(); | ||||
92 | } | 93 | } | ||
93 | 94 | | |||
94 | } // namespace | 95 | } // namespace |