--- a/src/mainwindow.cpp Mon Jan 30 00:59:06 2017 +0200 +++ b/src/mainwindow.cpp Mon Jan 30 02:18:42 2017 +0200 @@ -326,8 +326,8 @@ title += ": "; title += m_currentDocument->getDisplayName(); - if (m_currentDocument->getObjectCount() > 0 and - m_currentDocument->getObject (0)->type() == OBJ_Comment) + if (m_currentDocument->size() > 0 and + m_currentDocument->getObject(0)->type() == OBJ_Comment) { // Append title LDComment* comm = static_cast <LDComment*> (m_currentDocument->getObject (0)); @@ -600,7 +600,7 @@ return (*(selectedObjects().end() - 1))->lineNumber() + 1; // Otherwise place the object at the end. - return m_currentDocument->getObjectCount(); + return m_currentDocument->size(); } // ---------------------------------------------------------------------------------------------------------------------