diff options
Diffstat (limited to 'svx/source/svdraw/svdotextpathdecomposition.cxx')
-rw-r--r-- | svx/source/svdraw/svdotextpathdecomposition.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/svx/source/svdraw/svdotextpathdecomposition.cxx b/svx/source/svdraw/svdotextpathdecomposition.cxx index 648812461644..0276f0599f65 100644 --- a/svx/source/svdraw/svdotextpathdecomposition.cxx +++ b/svx/source/svdraw/svdotextpathdecomposition.cxx @@ -361,15 +361,16 @@ namespace { const impPathTextPortion* pCandidate = rTextPortions[a]; basegfx::B2DVector aFontScaling; - const drawinglayer::attribute::FontAttribute aCandidateFontAttribute( - drawinglayer::primitive2d::getFontAttributeFromVclFont( - aFontScaling, - pCandidate->getFont(), - pCandidate->isRTL(), - false)); if(pCandidate && pCandidate->getTextLength()) { + const drawinglayer::attribute::FontAttribute aCandidateFontAttribute( + drawinglayer::primitive2d::getFontAttributeFromVclFont( + aFontScaling, + pCandidate->getFont(), + pCandidate->isRTL(), + false)); + drawinglayer::primitive2d::TextLayouterDevice aTextLayouter; aTextLayouter.setFont(pCandidate->getFont()); xub_StrLen nUsedTextLength(0); |