--- a/src/documentloader.cpp Sat Jan 28 13:49:09 2017 +0200 +++ b/src/documentloader.cpp Sat Jan 28 14:01:19 2017 +0200 @@ -80,7 +80,7 @@ // Show a progress dialog if we're loading the main ldDocument.here so we can show progress updates and keep the // WM posted that we're still here. m_progressDialog = new OpenProgressDialog(qobject_cast<QWidget*>(parent())); - m_progressDialog->setNumLines (m_lines.size()); + m_progressDialog->setNumLines (length(m_lines)); m_progressDialog->setModal (true); m_progressDialog->show(); connect (this, SIGNAL (workDone()), m_progressDialog, SLOT (accept())); @@ -109,7 +109,7 @@ // Parse up to 200 lines per iteration int max = i + 200; - for (; i < max and i < (int) m_lines.size(); ++i) + for (; i < max and i < (int) length(m_lines); ++i) { QString line = m_lines[i]; @@ -134,7 +134,7 @@ if (m_progressDialog) m_progressDialog->setProgress (i); - if (i >= m_lines.size() - 1) + if (i >= length(m_lines) - 1) { emit workDone(); m_isDone = true;