Commit aee3f618 authored by Michael Reeves's avatar Michael Reeves

Skip comment removal for empty file.

parent a04b4712
......@@ -532,7 +532,7 @@ QStringList SourceData::readAndPreprocess(QTextCodec* pEncoding, bool bAutoDetec
}
// Ignore comments
if(m_pOptions->m_bIgnoreComments)
if(m_pOptions->m_bIgnoreComments && hasData())
{
m_lmppData.removeComments();
qint64 vSize = std::min(m_normalData.m_vSize, m_lmppData.m_vSize);
......
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