From d470a6b78a594ea3932f1510e60ffa36cb8f744b Mon Sep 17 00:00:00 2001 From: David Capello Date: Tue, 29 Apr 2014 01:19:39 -0300 Subject: [PATCH] Fix Clear command to delete the selection first when the range is enabled in one frame/one layer --- src/app/commands/cmd_clear.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/commands/cmd_clear.cpp b/src/app/commands/cmd_clear.cpp index e4084dd3a..437d67fd3 100644 --- a/src/app/commands/cmd_clear.cpp +++ b/src/app/commands/cmd_clear.cpp @@ -66,7 +66,7 @@ void ClearCommand::onExecute(Context* context) { // Clear of several frames is handled with RemoveCel command. Timeline::Range range = App::instance()->getMainWindow()->getTimeline()->range(); - if (range.enabled()) { + if (range.enabled() && (range.layers() > 1 || range.frames() > 1)) { Command* subCommand = CommandsModule::instance() ->getCommandByName(CommandId::RemoveCel); context->executeCommand(subCommand);