void KisImageResizeCommand::undo() { KisImageSP image = m_image.toStrongRef(); if (!image) { return; } image->setSize(m_sizeBefore); }
void KisImageResizeCommand::redo() { KisImageSP image = m_image.toStrongRef(); if (!image) { return; } image->setSize(m_sizeAfter); }