# HG changeset patch # User Teemu Piippo # Date 1529669030 -10800 # Node ID 737df8e904af929fb6c29042c530c96cf181b7a2 # Parent 6608db56b047931656151feb07951b9ba0b47db3 removed a duplicate member diff -r 6608db56b047 -r 737df8e904af src/lddocument.cpp --- a/src/lddocument.cpp Fri Jun 22 14:46:30 2018 +0300 +++ b/src/lddocument.cpp Fri Jun 22 15:03:50 2018 +0300 @@ -29,8 +29,7 @@ HierarchyElement (parent), m_history (new EditHistory (this)), m_savePosition(-1), - m_tabIndex(-1), - m_manager (parent) + m_tabIndex(-1) { connect( this, @@ -165,7 +164,7 @@ if (not isFrozen()) { setFrozen(true); - m_manager->documentClosed(this); + documentManager()->documentClosed(this); } } @@ -519,7 +518,7 @@ m_isInlining = true; // First ask the manager to deal with this inline (this takes logoed studs into account) - if (not m_manager->preInline(this, model, deep, renderinline)) + if (not documentManager()->preInline(this, model, deep, renderinline)) { for (LDObject* object : objects()) { diff -r 6608db56b047 -r 737df8e904af src/lddocument.h --- a/src/lddocument.h Fri Jun 22 14:46:30 2018 +0300 +++ b/src/lddocument.h Fri Jun 22 15:03:50 2018 +0300 @@ -142,7 +142,6 @@ QVector m_polygonData; QMap> m_objectVertices; QSet m_vertices; - DocumentManager* m_manager; private slots: void objectChanged(const LDObjectState &before, const LDObjectState &after);