diff options
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/docfilt.cxx | 27 |
1 files changed, 5 insertions, 22 deletions
diff --git a/sfx2/source/doc/docfilt.cxx b/sfx2/source/doc/docfilt.cxx index 7dddb700e60d..b3d931124f4c 100644 --- a/sfx2/source/doc/docfilt.cxx +++ b/sfx2/source/doc/docfilt.cxx @@ -67,33 +67,16 @@ SfxFilter::SfxFilter( const OUString &rName, lFormat(lFmt) { OUString aExts = GetWildcard().getGlob(); - OUString aShort, aLong; + OUString glob; OUString aRet; - OUString aTest; sal_uInt16 nPos = 0; while (!(aRet = aExts.getToken(nPos++, ';')).isEmpty() ) { - aTest = aRet; - aTest = aTest.replaceFirst( "*." , "" ); - if( aTest.getLength() <= USHRT_MAX ) - { - if (!aShort.isEmpty()) - aShort += ";"; - aShort += aRet; - } - else - { - if (!aLong.isEmpty()) - aLong += ";"; - aLong += aRet; - } - } - if (!aShort.isEmpty() && !aLong.isEmpty()) - { - aShort += ";"; - aShort += aLong; + if (!glob.isEmpty()) + glob += ";"; + glob += aRet; } - aWildCard.setGlob(aShort); + aWildCard.setGlob(glob); } SfxFilter::~SfxFilter() |