fpicker/source/office/iodlg.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit e7384daa27c954efa6a66dda829f23d7ad1b2a01 Author: Andras Timar <andras.ti...@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 ) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits