summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuthu Subramanian <sumuthu@suse.com>2013-02-05 14:53:30 +0530
committerMuthu Subramanian <sumuthu@suse.com>2013-02-05 14:53:30 +0530
commit522d4214bd0433362050d363f310749c8a2a324e (patch)
tree3b25be8c7960b4e1590afbeda59a40eddd559053
parent26d9f647258474b933f7a2c2fdf56af90749144a (diff)
n#753462: Drawing text with font size 0 causes artifacts.
Change-Id: Iab4c8d005514e7de2b8749b2568c5acd64c3b1aa
-rw-r--r--drawinglayer/source/processor2d/vclprocessor2d.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/drawinglayer/source/processor2d/vclprocessor2d.cxx b/drawinglayer/source/processor2d/vclprocessor2d.cxx
index e58bb5ed1bb0..bda69e8de14a 100644
--- a/drawinglayer/source/processor2d/vclprocessor2d.cxx
+++ b/drawinglayer/source/processor2d/vclprocessor2d.cxx
@@ -134,6 +134,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 );