Merge pull request #13964 from Krakean/richtextlabel_fix_deselection_bug

Rich Text Label: fixed deselection issue
This commit is contained in:
Rémi Verschelde 2017-12-05 09:23:40 +01:00 committed by GitHub
commit 7c0de08d38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -793,6 +793,17 @@ void RichTextLabel::_gui_input(Ref<InputEvent> p_event) {
selection.click = item;
selection.click_char = line;
// Erase previous selection.
if (selection.active) {
selection.from = NULL;
selection.from_char = NULL;
selection.to = NULL;
selection.to_char = NULL;
selection.active = false;
update();
}
}
}