]> git.saurik.com Git - wxWidgets.git/commitdiff
reset m_currentView in wxDocManager::Clear() (patch 1106872)
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 31 Jan 2005 22:34:38 +0000 (22:34 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 31 Jan 2005 22:34:38 +0000 (22:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/docview.cpp

index 551e02f516bb92ccd49c9a708eefc9c190b26fd9..f6f41c4e1146c26e290688e32078149fdb69d984 100644 (file)
@@ -906,6 +906,8 @@ bool wxDocManager::Clear(bool force)
     if (!CloseDocuments(force))
         return false;
 
+    m_currentView = NULL;
+
     wxList::compatibility_iterator node = m_templates.GetFirst();
     while (node)
     {