[Libreoffice-commits] .: Branch 'libreoffice-3-4' - fpicker/source
Fridrich Strba
fridrich at kemper.freedesktop.org
Mon Jun 6 05:54:02 PDT 2011
fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit ab6eb1094675c7e7eb044a50a99f3771a95ea6fa
Author: Tor Lillqvist <tlillqvist at novell.com>
Date: Mon Jun 6 15:46:32 2011 +0300
Sanity test, seems to fix fdo#37930
Signed-off-by: Fridrich Å trba <fridrich.strba at bluewin.ch>
diff --git a/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx b/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx
index b13069c..d5a3ff3 100644
--- a/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx
+++ b/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx
@@ -743,6 +743,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