From af96a674af52512a7b7bcbc687b1c3c365ac9af1 Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Sat, 20 Feb 2016 12:05:14 +0300 Subject: [PATCH] fix #9 The 'then' statement is equivalent to the 'else' statement. lrpagedesignintf.cpp --- src/lrpagedesignintf.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lrpagedesignintf.cpp b/src/lrpagedesignintf.cpp index e52c1d7..4a099bb 100644 --- a/src/lrpagedesignintf.cpp +++ b/src/lrpagedesignintf.cpp @@ -1907,8 +1907,9 @@ void CommandGroup::undoIt() void CommandGroup::addCommand(CommandIf::Ptr command, bool execute) { - if (execute && command->doIt()) - m_commands.append(command); + if (execute) + if (command->doIt()) + m_commands.append(command); else m_commands.append(command);