diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-04-03 13:51:18 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-04-03 13:53:18 +0200 |
commit | 248edba9de6c25a37f014316a89e38e788a1ac09 (patch) | |
tree | 6ed23481087e522942cd5f3e415e7aba82813e1a /vcl | |
parent | Need libswlo.so (diff) | |
download | core-248edba9de6c25a37f014316a89e38e788a1ac09.tar.gz core-248edba9de6c25a37f014316a89e38e788a1ac09.zip |
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.
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/edit.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index b3f75167fc80..aaa72bbe88ea 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 ) |