Commit 1fc9c45f authored by Volker Krause's avatar Volker Krause

Fix out-of-bounds access on the elements vector

parent f4eb1b6c
......@@ -333,6 +333,10 @@ void TimelineModel::updateInformationElements()
std::vector<TimelineModel::Element>::iterator TimelineModel::erasePreviousCountyInfo(std::vector<Element>::iterator it)
{
if (it == m_elements.begin()) {
return it;
}
auto it2 = it;
--it2;
if ((*it2).elementType == CountryInfo) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment