CtrlLib: Fixed LineEdit selection problem

git-svn-id: svn://ultimatepp.org/upp/trunk@1310 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2009-06-15 09:14:30 +00:00
parent c3f1714ddb
commit 14ab274e92
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@
NAMESPACE_UPP
#define LLOG(x) LOG(x)
#define LLOG(x) // LOG(x)
#ifdef PLATFORM_X11

View file

@ -446,7 +446,7 @@ void LineEdit::LeftTriple(Point, dword)
void LineEdit::MouseMove(Point p, dword flags) {
if((flags & K_MOUSELEFT) && HasFocus() && HasCapture()) {
int c = GetMousePos(p);
PlaceCaret(c, mpos != c);
PlaceCaret(c, mpos != c || HasCapture());
}
}