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
This commit is contained in:
@@ -273,7 +273,7 @@ bool wxDocument::SaveAs()
|
|||||||
|
|
||||||
if (docTemplate->GetViewClassInfo() && docTemplate->GetDocClassInfo())
|
if (docTemplate->GetViewClassInfo() && docTemplate->GetDocClassInfo())
|
||||||
{
|
{
|
||||||
wxList::compatibility_iterator node = wxDocManager::GetDocumentManager()->GetTemplates().GetFirst();
|
wxList::compatibility_iterator node = docTemplate->GetDocumentManager()->GetTemplates().GetFirst();
|
||||||
while (node)
|
while (node)
|
||||||
{
|
{
|
||||||
wxDocTemplate *t = (wxDocTemplate*) node->GetData();
|
wxDocTemplate *t = (wxDocTemplate*) node->GetData();
|
||||||
|
Reference in New Issue
Block a user