summaryrefslogtreecommitdiff
path: root/vcl/source/control/edit.cxx
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-04-03 13:51:18 +0200
committerLuboš Luňák <l.lunak@suse.cz>2012-04-03 13:53:18 +0200
commit248edba9de6c25a37f014316a89e38e788a1ac09 (patch)
tree6ed23481087e522942cd5f3e415e7aba82813e1a /vcl/source/control/edit.cxx
parent94166f3c95651da395a262112d666ab841e5cb86 (diff)
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/source/control/edit.cxx')
-rw-r--r--vcl/source/control/edit.cxx2
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 )