mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2025-10-01 03:39:48 +03:00
fix #9 The 'then' statement is equivalent to the 'else' statement. lrpagedesignintf.cpp
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user