Merge pull request #1289 from Febbe/master

Bugfix: The undo list is not cleared on opening or creating a new document.
This fix corrects that issue.
presentation
Fabian Keßler 7 years ago committed by GitHub
commit a7f0275858
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/undo/UndoRedoHandler.cpp

@ -76,6 +76,7 @@ void UndoRedoHandler::clearContents()
}
#endif // UNDO_TRACE
undoList.clear();
clearRedo();
this->savedUndo = nullptr;
@ -183,7 +184,7 @@ void UndoRedoHandler::addUndoAction(UndoActionPtr action)
{
XOJ_CHECK_TYPE(UndoRedoHandler);
if (action == nullptr)
if (!action)
{
return;
}

Loading…
Cancel
Save