summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2022-02-12 11:48:56 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2022-02-12 11:48:56 +0200
commitd7f6a4853a57f05f688bfd9cdb847f842ffbfd6d (patch)
tree9455e43d809994ef8291e0b9d0ac3f4033b188b6 /scene/gui
parentd05f0f15f30e71c1fdc950b037dfedb109780b62 (diff)
[RTL] Fix "img" tag not setting image size.
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/rich_text_label.cpp2
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--;