Merge pull request #51933 from requizm/fix/p51866
This commit is contained in:
commit
e599f1bdf0
@ -1127,7 +1127,7 @@ void RichTextLabel::_find_click(ItemFrame *p_frame, const Point2i &p_click, Item
|
||||
Point2 ofs = text_rect.get_position() + Vector2(0, main->lines[from_line].offset.y - vofs);
|
||||
while (ofs.y < size.height && from_line < main->lines.size()) {
|
||||
_find_click_in_line(p_frame, from_line, ofs, text_rect.size.x, p_click, r_click_frame, r_click_line, r_click_item, r_click_char);
|
||||
ofs.y += main->lines[from_line].text_buf->get_size().y;
|
||||
ofs.y += main->lines[from_line].text_buf->get_size().y + get_theme_constant(SNAME("line_separation"));
|
||||
if (((r_click_item != nullptr) && ((*r_click_item) != nullptr)) || ((r_click_frame != nullptr) && ((*r_click_frame) != nullptr))) {
|
||||
if (r_outside != nullptr) {
|
||||
*r_outside = false;
|
||||
|
Loading…
Reference in New Issue
Block a user