Commit 1d7351bf authored by Boudewijn Rempt's avatar Boudewijn Rempt

do not try to execute an empty action list

parent 9b92c289
......@@ -66,6 +66,10 @@ void KisMacroPlayer::run()
d->paused = false;
QList<KisRecordedAction*> actions = d->macro->actions();
if (actions.size() < 1) {
return;
}
dbgImage << "Start playing macro with " << actions.size() << " actions";
if (d->info.undoAdapter()) {
d->info.undoAdapter()->beginMacro(i18n("Play macro"));
......@@ -97,7 +101,7 @@ void KisMacroPlayer::run()
d->info.undoAdapter()->undoLastCommand();
}
}
}
#include "kis_macro_player.moc"
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