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 | 6f9702f7c2e2df38f18b8d69bd3ea6e957a2202c (patch) | |
tree | f6c47c486f31c89354357e3aaeb815818772bfdf | |
parent | f38eedda3e013612088802b3815368238bfc2341 (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 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); |