diff --git a/libs/image/commands/kis_node_property_list_command.cpp b/libs/image/commands/kis_node_property_list_command.cpp index cfde9e85d13a814223ba6e1a3df3745e7de5dd74..ca71df205934f5598dc2920765d23d042238756a 100644 --- a/libs/image/commands/kis_node_property_list_command.cpp +++ b/libs/image/commands/kis_node_property_list_command.cpp @@ -215,10 +215,9 @@ void KisNodePropertyListCommand::setNodePropertiesAutoUndo(KisNodeSP node, KisIm */ struct SimpleLodResettingStroke : public KisSimpleStrokeStrategy { - SimpleLodResettingStroke(KUndo2Command *cmd, KisImageSP image) + SimpleLodResettingStroke(KUndo2Command *cmd) : KisSimpleStrokeStrategy(QLatin1String("SimpleLodResettingStroke")), - m_cmd(cmd), - m_image(image) + m_cmd(cmd) { setClearsRedoOnStart(false); this->enableJob(JOB_INIT, true); @@ -226,15 +225,13 @@ void KisNodePropertyListCommand::setNodePropertiesAutoUndo(KisNodeSP node, KisIm void initStrokeCallback() override { m_cmd->redo(); - m_image->setModifiedWithoutUndo(); } private: QScopedPointer m_cmd; - KisImageSP m_image; }; - KisStrokeId strokeId = image->startStroke(new SimpleLodResettingStroke(cmd.take(), image)); + KisStrokeId strokeId = image->startStroke(new SimpleLodResettingStroke(cmd.take())); image->endStroke(strokeId); }