Commit b9c5d253 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Revert "Fix an inefficiency when converting an image"

This reverts commit 7bada452.
parent 7bada452
......@@ -24,9 +24,9 @@
KisImageLockCommand::KisImageLockCommand(KisImageWSP image, bool lockImage)
: KisImageCommand(kundo2_noi18n("lock image"), image),
m_lockImage(lockImage)
: KisImageCommand(kundo2_noi18n("lock image"), image)
{
Q_UNUSED(lockImage)
}
void KisImageLockCommand::redo()
......@@ -35,10 +35,7 @@ void KisImageLockCommand::redo()
if (!image) {
return;
}
if (!lockImage) {
image->refreshGraph();
}
image->refreshGraph();
}
void KisImageLockCommand::undo()
......@@ -47,9 +44,6 @@ void KisImageLockCommand::undo()
if (!image) {
return;
}
if (lockImage) {
image->refreshGraph();
}
image->refreshGraph();
}
......@@ -42,9 +42,6 @@ public:
void redo() override;
void undo() override;
private:
bool m_lockImage;
};
......
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