[Libreoffice-commits] core.git: drawinglayer/source
Muthu Subramanian
sumuthu at suse.com
Tue Feb 5 01:16:58 PST 2013
drawinglayer/source/processor2d/vclprocessor2d.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit f63c29f00c2672deef93ab208724bb7d3a056ff8
Author: Muthu Subramanian <sumuthu at suse.com>
Date: Tue Feb 5 14:55:36 2013 +0530
n#753462: Drawing text with font size 0 causes artifacts.
diff --git a/drawinglayer/source/processor2d/vclprocessor2d.cxx b/drawinglayer/source/processor2d/vclprocessor2d.cxx
index 919b246..aeb83c2 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<const primitive2d::TextDecoratedPortionPrimitive2D*>( &rTextCandidate );
More information about the Libreoffice-commits
mailing list