Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 04d751d7 authored by Casper Boemann's avatar Casper Boemann

BUG: 110296

Display is now restored on cancel.


svn path=/trunk/koffice/; revision=444450
parent ff066882
......@@ -79,6 +79,7 @@ public:
return true;
}
bool isCanceled() { return m_cancelRequested;};
private:
bool visit(KisPainter& gc, KisPaintDevice *dev);
......
......@@ -655,6 +655,14 @@ printf("%f %f\n",tx,ty);
KisPainter gc(img->activeLayer());
t.visit(gc, img->activeLayer());
if(t.isCanceled())
{
m_transaction->unexecute();
delete m_transaction;
m_transaction = 0;
activate();
return;
}
QRect rc = img->activeLayer()->extent();
rc = rc.normalize();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment