CtrlLib: LineEdit: Fixed issue with rect selection

git-svn-id: svn://ultimatepp.org/upp/trunk@7788 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-10-16 11:00:50 +00:00
parent 668b4b1713
commit 98ce32fc22

View file

@ -90,8 +90,8 @@ bool LineEdit::GetRectSelection(const Rect& rect, int line, int& l, int &h)
{
if(line >= rect.top && line <= rect.bottom) {
int len = GetLineLength(line);
l = GetGPos(line, min(len, rect.left));
h = GetGPos(line, min(len, rect.right));
l = GetGPos(line, rect.left);
h = GetGPos(line, rect.right);
return true;
}
return false;