From 1948ff5f89188afabbe0d538ab33545e3c94cbac Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 4 Sep 2013 13:07:11 +0000 Subject: [PATCH] Just remove redundant wxDocument::SetDocumentTemplate() call. This is already done from InitDocument() called from wxDocTemplate::CreateDocument(). Closes #15467. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/docview.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/common/docview.cpp b/src/common/docview.cpp index c5ba8064b2..45205f0e00 100644 --- a/src/common/docview.cpp +++ b/src/common/docview.cpp @@ -1511,7 +1511,6 @@ wxDocument *wxDocManager::CreateDocument(const wxString& pathOrig, long flags) return NULL; docNew->SetDocumentName(temp->GetDocumentName()); - docNew->SetDocumentTemplate(temp); wxTRY { -- 2.45.2