From 73b40d145794eb0371113deae91821d3d75e012f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Waldson=20Patr=C3=ADcio?= Date: Fri, 2 Sep 2016 12:06:48 -0300 Subject: [PATCH] Fixes LineEdit text selection with mouse selecting more than intended (cherry picked from commit 3d8497318401040979242ae04271d6c0f5b253e9) --- scene/gui/line_edit.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index fcea12fd6b..778e4cfa2a 100644 --- a/scene/gui/line_edit.cpp +++ b/scene/gui/line_edit.cpp @@ -806,16 +806,6 @@ void LineEdit::set_cursor_at_pixel_pos(int p_x) { pixel_ofs+=char_w; if (pixel_ofs > p_x) { //found what we look for - - - if ( (pixel_ofs-p_x) < (char_w >> 1 ) ) { - - ofs+=1; - } else if ( (pixel_ofs-p_x) > (char_w >> 1 ) ) { - - ofs-=1; - } - break; }