n#753462: Drawing text with font size 0 causes artifacts.

This commit is contained in:
Muthu Subramanian
2013-02-05 14:55:36 +05:30
parent be908eb4fa
commit f63c29f00c

View File

@@ -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<const primitive2d::TextDecoratedPortionPrimitive2D*>( &rTextCandidate );