summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@novell.com>2011-06-06 15:46:32 +0300
committerTor Lillqvist <tlillqvist@novell.com>2011-06-06 15:47:26 +0300
commit6f9702f7c2e2df38f18b8d69bd3ea6e957a2202c (patch)
treef6c47c486f31c89354357e3aaeb815818772bfdf
parentf38eedda3e013612088802b3815368238bfc2341 (diff)
Sanity test, seems to fix fdo#37930
-rw-r--r--fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx b/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx
index 8016b74eb5..5e03b11eec 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);