From e7b21b01fe4e998ce154cf92075a8ac7188253eb Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 11 Jan 2007 13:55:26 +0000 Subject: [PATCH] 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 --- src/common/docview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.45.2