From 54cbdc641494472360fe8f51a58b7443ffeaeaff Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 28 Jul 2010 11:26:33 +0000 Subject: [PATCH] Return after activating already opened document in wxDocManager. Add accidentally omitted "return" in wxDocManager::CreateDocument() to prevent recreating already opened documents. Closes #12277. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/docview.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/docview.cpp b/src/common/docview.cpp index 2111cfd22f..69e5061128 100644 --- a/src/common/docview.cpp +++ b/src/common/docview.cpp @@ -1408,6 +1408,7 @@ wxDocument *wxDocManager::CreateDocument(const wxString& pathOrig, long flags) { // file already open, just activate it and return ActivateDocument(doc); + return doc; } } } -- 2.45.2