[Libreoffice-commits] core.git: fpicker/source

Andras Timar andras.timar at collabora.com
Sun Mar 30 03:55:55 PDT 2014


 fpicker/source/office/iodlg.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit e7384daa27c954efa6a66dda829f23d7ad1b2a01
Author: Andras Timar <andras.timar at collabora.com>
Date:   Sun Mar 30 12:54:05 2014 +0200

    fdo#76778 fix wildcard support in File Open dialog
    
    Change-Id: Ifbdf6847ddecc7848828247655e729dfe2299b30

diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx
index e850f7d..b3ba51b 100644
--- a/fpicker/source/office/iodlg.cxx
+++ b/fpicker/source/office/iodlg.cxx
@@ -2490,6 +2490,7 @@ sal_Bool SvtFileDialog::IsolateFilterFromPath_Impl( OUString& rPath, OUString& r
     OUString aEmpty;
     OUString aReversePath = comphelper::string::reverseString(rPath);
     sal_Int32 nQuestionMarkPos = rPath.indexOf( '?' );
+    sal_Int32 nWildCardPos = rPath.indexOf( FILEDIALOG_DEF_WILDCARD );
 
     if ( nQuestionMarkPos != -1 )
     {
@@ -2498,8 +2499,10 @@ sal_Bool SvtFileDialog::IsolateFilterFromPath_Impl( OUString& rPath, OUString& r
 
         if ( INET_PROT_NOT_VALID != eProt && INET_PROT_FILE != eProt )
             nQuestionMarkPos = -1;
+
+        sal_Int32 nWildCardPos = std::min( nWildCardPos, nQuestionMarkPos );
     }
-    sal_Int32 nWildCardPos = std::min( rPath.indexOf( FILEDIALOG_DEF_WILDCARD ), nQuestionMarkPos );
+
     rFilter = aEmpty;
 
     if ( nWildCardPos != -1 )


More information about the Libreoffice-commits mailing list