Commit f7409845 authored by Michael Reeves's avatar Michael Reeves

Fix assert for small m_v.size()

parent 108707e8
......@@ -657,7 +657,7 @@ bool SourceData::FileData::preprocess(QTextCodec* pEncoding)
}
m_v.push_back(LineData(m_unicodeBuf, lastOffset));
Q_ASSERT(m_v[m_v.size() - 1].getOffset() != m_v[m_v.size() - 2].getOffset());
Q_ASSERT(m_v.size() < 2 || m_v[m_v.size() - 1].getOffset() != m_v[m_v.size() - 2].getOffset());
m_bIsText = true;
......
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