src: fixed redo crash
* fixed crash when redoing the last action on redostack
This commit is contained in:
@@ -158,7 +158,7 @@ void UndoRedoController::handleMessage(MessageRedo* message)
|
|||||||
std::list<Command>::iterator oldIterator = m_iterator;
|
std::list<Command>::iterator oldIterator = m_iterator;
|
||||||
|
|
||||||
std::advance(m_iterator, 1);
|
std::advance(m_iterator, 1);
|
||||||
while (m_iterator->order == Command::ORDER_VIEW)
|
while (m_iterator != m_list.end() && m_iterator->order == Command::ORDER_VIEW)
|
||||||
{
|
{
|
||||||
std::advance(m_iterator, 1);
|
std::advance(m_iterator, 1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user