[Libreoffice-commits] core.git: Branch 'aoo/trunk' - fpicker/source

Andre Fischer af at apache.org
Fri Jun 28 03:07:37 PDT 2013


 fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 9813b7fb44a2fb3c8b3c681b973b8b0fcf4639ad
Author: Andre Fischer <af at apache.org>
Date:   Fri Jun 28 09:11:27 2013 +0000

    121772: Prevent a crash when no plugin filter is present.

diff --git a/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx b/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx
index 28383c0..f44ba31 100644
--- a/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx
+++ b/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx
@@ -767,6 +767,9 @@ void VistaFilePickerImpl::impl_sta_setFiltersOnDialog()
     aLock.clear();
     // <- SYNCHRONIZED
 
+    if (lFilters.empty())
+        return;
+
     COMDLG_FILTERSPEC   *pFilt = &lFilters[0];
     iDialog->SetFileTypes(lFilters.size(), pFilt/*&lFilters[0]*/);
     iDialog->SetFileTypeIndex(nCurrentFilter + 1);


More information about the Libreoffice-commits mailing list