diff options
-rw-r--r-- | sd/source/filter/xml/sdxmlwrp.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sd/source/filter/xml/sdxmlwrp.cxx b/sd/source/filter/xml/sdxmlwrp.cxx index 554fff5e4a63..9763062bf14b 100644 --- a/sd/source/filter/xml/sdxmlwrp.cxx +++ b/sd/source/filter/xml/sdxmlwrp.cxx @@ -803,10 +803,9 @@ sal_Bool SdXMLFilter::Import( ErrCode& nError ) const SfxFilter * pFilter = mrMedium.GetFilter(); if( pFilter ) { - const String& rTypeName = pFilter->GetRealTypeName(); - - if( (rTypeName.CompareToAscii( "impress_StarImpress" ) == 0) || - (rTypeName.CompareToAscii( "draw_StarDraw" ) == 0) ) + OUString typeName(pFilter->GetRealTypeName()); + if( typeName.startsWith( "impress_StarImpress" ) || + typeName.startsWith( "draw_StarDraw" ) ) { bTransform = true; } |