912:3feb4d20092d | 916:bf08a6b42102 |
---|---|
129 LDDocument::LDDocument (LDDocumentPtr* selfptr) : | 129 LDDocument::LDDocument (LDDocumentPtr* selfptr) : |
130 m_isImplicit (true), | 130 m_isImplicit (true), |
131 m_flags (0), | 131 m_flags (0), |
132 m_verticesOutdated (true), | 132 m_verticesOutdated (true), |
133 m_needVertexMerge (true), | 133 m_needVertexMerge (true), |
134 m_gldata (new LDGLData) | 134 m_gldata (new LDGLData), |
135 m_header (new LDHeader) | |
135 { | 136 { |
136 *selfptr = LDDocumentPtr (this); | 137 *selfptr = LDDocumentPtr (this); |
137 setSelf (*selfptr); | 138 setSelf (*selfptr); |
138 setSavePosition (-1); | 139 setSavePosition (-1); |
139 setTabIndex (-1); | 140 setTabIndex (-1); |
162 | 163 |
163 g_allDocuments.removeOne (self()); | 164 g_allDocuments.removeOne (self()); |
164 m_flags |= DOCF_IsBeingDestroyed; | 165 m_flags |= DOCF_IsBeingDestroyed; |
165 delete m_history; | 166 delete m_history; |
166 delete m_gldata; | 167 delete m_gldata; |
168 delete m_header; | |
167 } | 169 } |
168 | 170 |
169 // ============================================================================= | 171 // ============================================================================= |
170 // | 172 // |
171 void LDDocument::setImplicit (bool const& a) | 173 void LDDocument::setImplicit (bool const& a) |