]> git.saurik.com Git - wxWidgets.git/commitdiff
don't leave dummy extension in of.lpstrDefExt (bug 1609614)
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 6 Dec 2006 17:17:37 +0000 (17:17 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 6 Dec 2006 17:17:37 +0000 (17:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43833 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/filedlg.cpp

index 63e5f18dfdaf3c8bd859bbeb099142db3228952b..ef9fd75fd83573b1d926739841c139a01376a754 100644 (file)
@@ -425,7 +425,7 @@ int wxFileDialog::ShowModal()
         defextBuffer = AppendExtension(wxT("a"), extension);
         if (defextBuffer.StartsWith(wxT("a.")))
         {
-            defextBuffer.Mid(2);
+            defextBuffer = defextBuffer.Mid(2); // remove "a."
             of.lpstrDefExt = defextBuffer.c_str();
         }
     }