From a26c7629a2ad7e55458e49166aff8f351ffebdc8 Mon Sep 17 00:00:00 2001 From: cxl Date: Sat, 13 Sep 2014 17:39:34 +0000 Subject: [PATCH] CtrlLine: LineEdit: fixed PasteInColumn at the end of line #856 git-svn-id: svn://ultimatepp.org/upp/trunk@7683 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/CtrlLib/LineEdit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uppsrc/CtrlLib/LineEdit.cpp b/uppsrc/CtrlLib/LineEdit.cpp index e753a72f2..c52700de7 100644 --- a/uppsrc/CtrlLib/LineEdit.cpp +++ b/uppsrc/CtrlLib/LineEdit.cpp @@ -150,7 +150,7 @@ void LineEdit::PasteColumn(const WString& text) for(int i = 0; i < cl.GetCount(); i++) { int li = p.y + i; if(li < line.GetCount()) { - int l = GetGPos(i + p.y, min(GetLineLength(li), p.x)); + int l = GetGPos(i + p.y, p.x); pos = l + Insert(l, cl[i]); } else {