logic: Fixed sorting of search results and crash in undo redo controller

This commit is contained in:
Eberhard Graether
2016-04-19 12:38:03 +02:00
parent 7cd38f8e56
commit 5d71536bb1
2 changed files with 8 additions and 3 deletions
@@ -380,6 +380,11 @@ MessageBase* UndoRedoController::lastMessage() const
bool UndoRedoController::requiresActivateFallbackToken() const
{
if (m_iterator == m_list.begin())
{
return true;
}
std::list<Command>::iterator it = m_iterator;
do