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; } } }