]> git.saurik.com Git - wxWidgets.git/commitdiff
Use the associated document manager, not the global one
authorJulian Smart <julian@anthemion.co.uk>
Thu, 11 Jan 2007 13:55:26 +0000 (13:55 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 11 Jan 2007 13:55:26 +0000 (13:55 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/docview.cpp

index ea677c4487c544268eb3ea3cb679545d96272fd8..a72517a65b0a3f36c8f4cfcaab1eecea758e13f7 100644 (file)
@@ -273,7 +273,7 @@ bool wxDocument::SaveAs()
 
     if (docTemplate->GetViewClassInfo() && docTemplate->GetDocClassInfo())
     {
-        wxList::compatibility_iterator node = wxDocManager::GetDocumentManager()->GetTemplates().GetFirst();
+        wxList::compatibility_iterator node = docTemplate->GetDocumentManager()->GetTemplates().GetFirst();
         while (node)
         {
             wxDocTemplate *t = (wxDocTemplate*) node->GetData();