[Libreoffice-commits] .: fpicker/source

Tor Lillqvist tml at kemper.freedesktop.org
Mon Jun 6 05:49:15 PDT 2011


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

New commits:
commit 6f9702f7c2e2df38f18b8d69bd3ea6e957a2202c
Author: Tor Lillqvist <tlillqvist at novell.com>
Date:   Mon Jun 6 15:46:32 2011 +0300

    Sanity test, seems to fix fdo#37930

diff --git a/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx b/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx
index 8016b74..5e03b11 100644
--- a/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx
+++ b/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx
@@ -772,6 +772,9 @@ void VistaFilePickerImpl::impl_sta_setFiltersOnDialog()
     aLock.clear();
     // <- SYNCHRONIZED
 
+    if (lFilters.size() == 0)
+        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