diff options
Diffstat (limited to 'svgio/source/svgreader/svgcharacternode.cxx')
-rw-r--r-- | svgio/source/svgreader/svgcharacternode.cxx | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/svgio/source/svgreader/svgcharacternode.cxx b/svgio/source/svgreader/svgcharacternode.cxx index 70e99384b440..edd77e2921eb 100644 --- a/svgio/source/svgreader/svgcharacternode.cxx +++ b/svgio/source/svgreader/svgcharacternode.cxx @@ -503,36 +503,36 @@ namespace svgio rSvgTextPosition, rSvgStyleAttributes)); - if(xRef.is() && (Visibility_visible == rSvgStyleAttributes.getVisibility())) - { - if(!rSvgTextPosition.isRotated()) - { - rTarget.push_back(xRef); - } - else - { - // need to apply rotations to each character as given - const drawinglayer::primitive2d::TextSimplePortionPrimitive2D* pCandidate = - dynamic_cast< const drawinglayer::primitive2d::TextSimplePortionPrimitive2D* >(xRef.get()); + if(!(xRef.is() && (Visibility_visible == rSvgStyleAttributes.getVisibility()))) + return; - if(pCandidate) - { - const localTextBreakupHelper alocalTextBreakupHelper(*pCandidate, rSvgTextPosition); - const drawinglayer::primitive2d::Primitive2DContainer& aResult( - alocalTextBreakupHelper.getResult()); + if(!rSvgTextPosition.isRotated()) + { + rTarget.push_back(xRef); + } + else + { + // need to apply rotations to each character as given + const drawinglayer::primitive2d::TextSimplePortionPrimitive2D* pCandidate = + dynamic_cast< const drawinglayer::primitive2d::TextSimplePortionPrimitive2D* >(xRef.get()); - if(!aResult.empty()) - { - rTarget.append(aResult); - } + if(pCandidate) + { + const localTextBreakupHelper alocalTextBreakupHelper(*pCandidate, rSvgTextPosition); + const drawinglayer::primitive2d::Primitive2DContainer& aResult( + alocalTextBreakupHelper.getResult()); - // also consume for the implied single space - rSvgTextPosition.consumeRotation(); - } - else + if(!aResult.empty()) { - OSL_ENSURE(false, "Used primitive is not a text primitive (!)"); + rTarget.append(aResult); } + + // also consume for the implied single space + rSvgTextPosition.consumeRotation(); + } + else + { + OSL_ENSURE(false, "Used primitive is not a text primitive (!)"); } } } |