From 14ab274e92602c2b9be1ca9ac5fe3bddd386566a Mon Sep 17 00:00:00 2001 From: cxl Date: Mon, 15 Jun 2009 09:14:30 +0000 Subject: [PATCH] CtrlLib: Fixed LineEdit selection problem git-svn-id: svn://ultimatepp.org/upp/trunk@1310 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/CtrlCore/X11Clip.cpp | 2 +- uppsrc/CtrlLib/LineEdit.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/uppsrc/CtrlCore/X11Clip.cpp b/uppsrc/CtrlCore/X11Clip.cpp index a5e8eea49..91452884b 100644 --- a/uppsrc/CtrlCore/X11Clip.cpp +++ b/uppsrc/CtrlCore/X11Clip.cpp @@ -2,7 +2,7 @@ NAMESPACE_UPP -#define LLOG(x) LOG(x) +#define LLOG(x) // LOG(x) #ifdef PLATFORM_X11 diff --git a/uppsrc/CtrlLib/LineEdit.cpp b/uppsrc/CtrlLib/LineEdit.cpp index 603beb738..3749a3bcb 100644 --- a/uppsrc/CtrlLib/LineEdit.cpp +++ b/uppsrc/CtrlLib/LineEdit.cpp @@ -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()); } }