diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-01-07 16:13:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-07 16:13:18 +0100 |
commit | 56d8a2295de01eafb831112cac9710323f27fac2 (patch) | |
tree | 789947a7af92e57c4df73fe5f32cb0cb48281f23 /scene/gui | |
parent | cd408c5256f748cd01fd6917562ead87f402a9ea (diff) | |
parent | d79f0e7d402689c84f741c15dd5e0eeb5614a08c (diff) |
Merge pull request #34890 from Kanabenki/fix-cursor-richtextlabel
Fix wrong cursor shape in empty space when meta link wraps in RichTextLabel
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/rich_text_label.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp index 5b7d7403ae..b39797d98c 100644 --- a/scene/gui/rich_text_label.cpp +++ b/scene/gui/rich_text_label.cpp @@ -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; |