Lines 889-896
Link Here
|
889 |
hResult = iDialog->GetFileTypeIndex(&nFileType); |
889 |
hResult = iDialog->GetFileTypeIndex(&nFileType); |
890 |
if ( SUCCEEDED(hResult) ) |
890 |
if ( SUCCEEDED(hResult) ) |
891 |
{ |
891 |
{ |
|
|
892 |
::sal_Int32 nRealIndex = (nFileType-1); // COM dialog base on 1 ... filter container on 0 .-) |
892 |
::std::vector< COMDLG_FILTERSPEC > lFilters = lcl_buildFilterList(m_lFilters); |
893 |
::std::vector< COMDLG_FILTERSPEC > lFilters = lcl_buildFilterList(m_lFilters); |
893 |
LPCWSTR lpFilterExt = lFilters[nFileType].pszSpec; |
894 |
LPCWSTR lpFilterExt = lFilters[nRealIndex].pszSpec; |
894 |
|
895 |
|
895 |
lpFilterExt = wcsrchr( lpFilterExt, '.' ); |
896 |
lpFilterExt = wcsrchr( lpFilterExt, '.' ); |
896 |
if ( lpFilterExt ) |
897 |
if ( lpFilterExt ) |