diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2016-09-05 07:46:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-05 07:46:02 +0200 |
commit | eb1b71180ee7c37c32da3110bfee7d6638596f5d (patch) | |
tree | 2337bb3c64c677fc10569d2b040f663082b03b83 /scene | |
parent | 7d600caa1659b95a82fbb1bd932e36f40277ad16 (diff) | |
parent | 3d8497318401040979242ae04271d6c0f5b253e9 (diff) |
Merge pull request #6372 from waldson/master
Fixes LineEdit text selection with mouse selecting more than intended
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/line_edit.cpp | 10 |
1 files changed, 0 insertions, 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; } |