Kaydet (Commit) 248edba9 authored tarafından Luboš Luňák's avatar Luboš Luňák

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.
üst 94166f3c
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment