mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-05 17:44:55 -06:00
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:
parent
668b4b1713
commit
98ce32fc22
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue