From f63c29f00c2672deef93ab208724bb7d3a056ff8 Mon Sep 17 00:00:00 2001 From: Muthu Subramanian Date: Tue, 5 Feb 2013 14:55:36 +0530 Subject: [PATCH] n#753462: Drawing text with font size 0 causes artifacts. --- drawinglayer/source/processor2d/vclprocessor2d.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drawinglayer/source/processor2d/vclprocessor2d.cxx b/drawinglayer/source/processor2d/vclprocessor2d.cxx index 919b246f3df8..aeb83c21ca86 100644 --- a/drawinglayer/source/processor2d/vclprocessor2d.cxx +++ b/drawinglayer/source/processor2d/vclprocessor2d.cxx @@ -156,6 +156,10 @@ namespace drawinglayer fRotate, rTextCandidate.getLocale())); + // Don't draw fonts without height + if( aFont.GetHeight() <= 0 ) + return; + // handle additional font attributes const primitive2d::TextDecoratedPortionPrimitive2D* pTCPP = dynamic_cast( &rTextCandidate );