Skip to content

Commit

Permalink
Call base class undo commands
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 6, 2017
1 parent 66b4bdf commit 9c8b96b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/layout/qgslayoutundocommand.cpp
Expand Up @@ -25,6 +25,7 @@ QgsAbstractLayoutUndoCommand::QgsAbstractLayoutUndoCommand( const QString &text,

void QgsAbstractLayoutUndoCommand::undo()
{
QUndoCommand::undo();
restoreState( mBeforeState );
}

Expand All @@ -35,6 +36,7 @@ void QgsAbstractLayoutUndoCommand::redo()
mFirstRun = false;
return;
}
QUndoCommand::redo();
restoreState( mAfterState );
}

Expand Down

0 comments on commit 9c8b96b

Please sign in to comment.