mirror of
https://github.com/godotengine/godot.git
synced 2024-12-04 01:52:56 +00:00
[RTL] Fix "img" tag not setting image size.
This commit is contained in:
parent
d05f0f15f3
commit
d7f6a4853a
@ -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--;
|
||||
|
Loading…
Reference in New Issue
Block a user