[Libreoffice-commits] core.git: Branch 'distro/suse/suse-3.6' - drawinglayer/source

Muthu Subramanian sumuthu at suse.com
Tue Feb 5 01:15:14 PST 2013


 drawinglayer/source/processor2d/vclprocessor2d.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 522d4214bd0433362050d363f310749c8a2a324e
Author: Muthu Subramanian <sumuthu at suse.com>
Date:   Tue Feb 5 14:53:30 2013 +0530

    n#753462: Drawing text with font size 0 causes artifacts.
    
    Change-Id: Iab4c8d005514e7de2b8749b2568c5acd64c3b1aa

diff --git a/drawinglayer/source/processor2d/vclprocessor2d.cxx b/drawinglayer/source/processor2d/vclprocessor2d.cxx
index e58bb5e..bda69e8 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 );


More information about the Libreoffice-commits mailing list