Commit 99fccb6d authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

do not crash on lines starting with an equal sign

parent b1ea36bc
...@@ -357,6 +357,9 @@ void ProFileEvaluator::Private::insertVariable(const QString &line, int *i) ...@@ -357,6 +357,9 @@ void ProFileEvaluator::Private::insertVariable(const QString &line, int *i)
{ {
ProVariable::VariableOperator opkind; ProVariable::VariableOperator opkind;
if (m_proitem.isEmpty()) // Line starting with '=', like a conflict marker
return;
switch (m_proitem.at(m_proitem.length() - 1).unicode()) { switch (m_proitem.at(m_proitem.length() - 1).unicode()) {
case '+': case '+':
m_proitem.chop(1); m_proitem.chop(1);
......
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