diff options
author | Tor Lillqvist <tlillqvist@novell.com> | 2011-06-06 15:46:32 +0300 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@novell.com> | 2011-06-06 15:47:26 +0300 |
commit | 508a953c274c8a534c379ded04adc7df1e5fd5ba (patch) | |
tree | a1b666a4f33a4f41ca5296cc58ccaf9b78da2ae8 | |
parent | b6212a4a950d9091aaad62022216e8aaaa074965 (diff) |
Sanity test, seems to fix fdo#37930
-rw-r--r-- | fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx b/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx index 6cc0d522b920..8538282a44b0 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); |