diff options
-rw-r--r-- | filter/source/svg/svgexport.cxx | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/filter/source/svg/svgexport.cxx b/filter/source/svg/svgexport.cxx index cf76b9157ca7..f3c8350ccf04 100644 --- a/filter/source/svg/svgexport.cxx +++ b/filter/source/svg/svgexport.cxx @@ -352,7 +352,7 @@ sal_Bool SVGExport::IsUseTinyProfile() const { sal_Bool bRet = sal_False; - if( mrFilterData.getLength() > 0 ) + if( IsUsePositionedCharacters() && mrFilterData.getLength() > 0 ) mrFilterData[ 0 ].Value >>= bRet; return bRet; @@ -364,7 +364,7 @@ sal_Bool SVGExport::IsEmbedFonts() const { sal_Bool bRet = sal_False; - if( mrFilterData.getLength() > 1 ) + if( IsUsePositionedCharacters() && mrFilterData.getLength() > 1 ) mrFilterData[ 1 ].Value >>= bRet; return bRet; @@ -372,13 +372,6 @@ sal_Bool SVGExport::IsEmbedFonts() const // ----------------------------------------------------------------------------- -sal_Bool SVGExport::IsUsePositionedCharacters() const -{ - return false; -} - -// ----------------------------------------------------------------------------- - sal_Bool SVGExport::IsUseNativeTextDecoration() const { sal_Bool bRet = !IsUseTinyProfile(); @@ -401,6 +394,18 @@ sal_Bool SVGExport::IsUseOpacity() const return bRet; } +// ----------------------------------------------------------------------------- + +sal_Bool SVGExport::IsUsePositionedCharacters() const +{ + sal_Bool bRet = sal_False; + if( mrFilterData.getLength() > 6 ) + mrFilterData[ 6 ].Value >>= bRet; + + return bRet; +} + + // ------------------------ // - ObjectRepresentation - // ------------------------ |