Merge pull request #34890 from Kanabenki/fix-cursor-richtextlabel

Fix wrong cursor shape in empty space when meta link wraps in RichTextLabel
This commit is contained in:
Rémi Verschelde 2020-01-07 16:13:18 +01:00 committed by GitHub
commit 56d8a2295d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1063,10 +1063,10 @@ Control::CursorShape RichTextLabel::get_cursor_shape(const Point2 &p_pos) const
int line = 0;
Item *item = NULL;
bool outside;
((RichTextLabel *)(this))->_find_click(main, p_pos, &item, &line, &outside);
((RichTextLabel *)(this))->_find_click(main, p_pos, &item, &line);
if (item && ((RichTextLabel *)(this))->_find_meta(item, NULL))
if (item && !outside && ((RichTextLabel *)(this))->_find_meta(item, NULL))
return CURSOR_POINTING_HAND;
return CURSOR_ARROW;