[Libreoffice-commits] core.git: Branch 'libreoffice-4-0' - drawinglayer/source
Muthu Subramanian
sumuthu at suse.com
Wed Feb 6 01:58:41 PST 2013
drawinglayer/source/processor2d/vclprocessor2d.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit e86ce65dfe42a7d7f3f2cdae3bdcea0f42bb6bb3
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.
Signed-off-by: Jan Holesovsky <kendy at suse.cz>
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