diff options
author | Waldson PatrĂcio <waldsonpatricio@gmail.com> | 2016-09-02 12:06:48 -0300 |
---|---|---|
committer | Waldson PatrĂcio <waldsonpatricio@gmail.com> | 2016-09-02 13:04:15 -0300 |
commit | 3d8497318401040979242ae04271d6c0f5b253e9 (patch) | |
tree | 1d5d4336b1e4ebff9470eccb48a8ef61c6fa973e /scene/gui | |
parent | 8216bec7d1adf123e76e5feb8d72ac176e94d537 (diff) |
Fixes LineEdit text selection with mouse selecting more than intended
Diffstat (limited to 'scene/gui')
-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; } |