diff -r de0d51349f6c -r 8bfe34c6ab1a src/document.cc --- a/src/document.cc Sun Jan 12 23:12:55 2014 +0200 +++ b/src/document.cc Sun Jan 12 23:38:40 2014 +0200 @@ -120,7 +120,8 @@ // ============================================================================= // ----------------------------------------------------------------------------- -LDDocument::LDDocument() +LDDocument::LDDocument() : + m_gldata (new LDGLData) { setImplicit (true); setSavePosition (-1); @@ -148,6 +149,7 @@ obj->deleteSelf(); delete m_History; + delete m_gldata; // If we just closed the current file, we need to set the current // file as something else. @@ -1281,7 +1283,7 @@ // Sets the given file as the current one on display. At some point in time this // was an operation completely unheard of. ;) // -// FIXME: f can be temporarily null. This probably should not be the case. +// TODO: f can be temporarily null. This probably should not be the case. // ----------------------------------------------------------------------------- void LDDocument::setCurrent (LDDocument* f) { @@ -1299,7 +1301,6 @@ g_win->buildObjList(); g_win->updateTitle(); g_win->R()->setFile (f); - g_win->R()->resetAllAngles(); g_win->R()->repaint(); log ("Changed file to %1", f->getDisplayName()); }