[Libreoffice-commits] .: vcl/source

Lubos Lunak llunak at kemper.freedesktop.org
Tue Apr 3 04:54:04 PDT 2012


 vcl/source/control/edit.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 248edba9de6c25a37f014316a89e38e788a1ac09
Author: Luboš Luňák <l.lunak at suse.cz>
Date:   Tue Apr 3 13:51:18 2012 +0200

    adjust code for what the original Intersect() usage probably meant
    
    Daniel Bankston is right, the call probably meant to check whether
    the intersection is not empty, as an optimization.

diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index b3f7516..aaa72bb 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -671,7 +671,7 @@ void Edit::ImplRepaint( xub_StrLen nStart, xub_StrLen nEnd, bool bLayout )
                     }
                     i = nIndex;
 		    aClip.Intersect(aRegion);
-                    if( nAttr )
+                    if( !aClip.IsEmpty() && nAttr )
                     {
                         Font aFont = GetFont();
                         if ( nAttr & EXTTEXTINPUT_ATTR_UNDERLINE )


More information about the Libreoffice-commits mailing list