diff --git a/src/core/Buffer.cc b/src/core/Buffer.cc index c3529cd..c18040b 100644 --- a/src/core/Buffer.cc +++ b/src/core/Buffer.cc @@ -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(); }