do not attempt to redo past the last available operation

This commit is contained in:
josh committed 2017-01-11 22:53:19 -05:00
1 parent 089d63f337
commit f1815d04d9
1 file changed
+1 -1
+1 -1
View File
@@ -409,7 +409,7 @@ void Buffer::redo()
child_index = 0u;
}
}
else
else if (m_change_operations[m_current_change_operation_index]->children.size() > 0u)
{
child_index = *m_change_operations[m_current_change_operation_index]->children.begin();
}