Change cursor to multi-selection cursor when selecting text in RichTextLabel.

Fix for #27545 : returns 'CURSOR_IBEAM' shape when selection is clicked.
This commit is contained in:
Teto 2019-07-26 15:24:02 +02:00 committed by MB
parent 639127de09
commit b1dbd114c4

View file

@ -920,9 +920,12 @@ void RichTextLabel::_find_click(ItemFrame *p_frame, const Point2i &p_click, Item
Control::CursorShape RichTextLabel::get_cursor_shape(const Point2 &p_pos) const {
if (!underline_meta || selection.click)
if (!underline_meta)
return CURSOR_ARROW;
if (selection.click)
return CURSOR_IBEAM;
if (main->first_invalid_line < main->lines.size())
return CURSOR_ARROW; //invalid