diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-02-12 15:28:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-12 15:28:26 +0100 |
commit | 732725d663af0363fe1a0f5d6d662ed3921c3419 (patch) | |
tree | 9f80096520e45e9e1be0e783da680a13609725f0 /scene/gui | |
parent | 7d0b9ec21a7d7e9765032462d8bf5448bcdfe038 (diff) | |
parent | d7f6a4853a57f05f688bfd9cdb847f842ffbfd6d (diff) |
Merge pull request #58006 from bruvzg/fix_rtl_img_resize
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/rich_text_label.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp index 4d779f51e2..042aec7362 100644 --- a/scene/gui/rich_text_label.cpp +++ b/scene/gui/rich_text_label.cpp @@ -514,7 +514,7 @@ void RichTextLabel::_shape_line(ItemFrame *p_frame, int p_line, const Ref<Font> } break; case ITEM_IMAGE: { ItemImage *img = (ItemImage *)it; - l.text_buf->add_object((uint64_t)it, img->image->get_size(), img->inline_align, 1); + l.text_buf->add_object((uint64_t)it, img->size, img->inline_align, 1); text += String::chr(0xfffc); l.char_count++; remaining_characters--; |