]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/docview.cpp
avoid setting negative window size
[wxWidgets.git] / src / common / docview.cpp
index 8350a4117f711d7650852aea408f2814769ebcf6..635a2529bb8f31d9a5adcd3273df6ae7a0226bbe 100644 (file)
@@ -1625,7 +1625,8 @@ wxDocTemplate *wxDocManager::SelectDocumentPath(wxDocTemplate **templates,
                                         GetLastDirectory(),
                                         wxEmptyString,
                                         &FilterIndex,
-                                        descrBuf);
+                                        descrBuf,
+                                        wxFD_OPEN | wxFD_FILE_MUST_EXIST);
 
     wxDocTemplate *theTemplate = NULL;
     if (!pathTmp.empty())