diff options
Diffstat (limited to 'filter/source/msfilter/escherex.cxx')
-rw-r--r-- | filter/source/msfilter/escherex.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/source/msfilter/escherex.cxx b/filter/source/msfilter/escherex.cxx index f3944cf504dc..0f99932dc20c 100644 --- a/filter/source/msfilter/escherex.cxx +++ b/filter/source/msfilter/escherex.cxx @@ -1208,7 +1208,7 @@ sal_Bool EscherPropertyContainer::CreateEmbeddedBitmapProperties( OUString aVndUrl( "vnd.sun.star.GraphicObject:" ); OUString aBmpUrl( rBitmapUrl ); sal_Int32 nIndex = aBmpUrl.indexOf( aVndUrl, 0 ); - if( nIndex != STRING_NOTFOUND ) + if( nIndex != -1 ) { // note: += ist not defined for xub_StrLen -> conversion to int and back to xub_StrLen nIndex = nIndex + aVndUrl.getLength(); @@ -1376,7 +1376,7 @@ sal_Bool EscherPropertyContainer::CreateGraphicProperties( { OUString aVndUrl( "vnd.sun.star.GraphicObject:" ); sal_Int32 nIndex = aGraphicUrl.indexOf( aVndUrl, 0 ); - if ( nIndex != STRING_NOTFOUND ) + if ( nIndex != -1 ) { nIndex = nIndex + aVndUrl.getLength(); if ( aGraphicUrl.getLength() > nIndex ) |