diff options
author | Muthu Subramanian <sumuthu@suse.com> | 2013-02-05 14:55:36 +0530 |
---|---|---|
committer | Muthu Subramanian <sumuthu@suse.com> | 2013-02-05 14:55:36 +0530 |
commit | f63c29f00c2672deef93ab208724bb7d3a056ff8 (patch) | |
tree | 108019798235286f4c2b749fb1fadd731b378169 /drawinglayer/source | |
parent | be908eb4fa40e059278f36ba79389829caea7e31 (diff) |
n#753462: Drawing text with font size 0 causes artifacts.
Diffstat (limited to 'drawinglayer/source')
-rw-r--r-- | drawinglayer/source/processor2d/vclprocessor2d.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
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<const primitive2d::TextDecoratedPortionPrimitive2D*>( &rTextCandidate ); |