From: Julian Smart Date: Thu, 11 Jan 2007 13:55:26 +0000 (+0000) Subject: Use the associated document manager, not the global one X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e7b21b01fe4e998ce154cf92075a8ac7188253eb Use the associated document manager, not the global one git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/docview.cpp b/src/common/docview.cpp index ea677c4487..a72517a65b 100644 --- a/src/common/docview.cpp +++ b/src/common/docview.cpp @@ -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();