From ca56d7d9358ac189872b65f2aaef9d1ba4e471c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Lucas=20Golini?= Date: Thu, 21 May 2026 14:10:29 -0300 Subject: [PATCH] Should fix build in some envs. --- src/eepp/graphics/richtext.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/eepp/graphics/richtext.cpp b/src/eepp/graphics/richtext.cpp index df1035425..903eeff1a 100644 --- a/src/eepp/graphics/richtext.cpp +++ b/src/eepp/graphics/richtext.cpp @@ -1805,7 +1805,7 @@ void RichText::addSpan( const String& text, const FontStyleConfig& style, const box.contributesInlineSpacing = false; if ( !text.empty() || margin != Rectf::Zero || padding != Rectf::Zero || lineHeight > 0 ) { InlineItem textItem; - auto& run = textItem.data.emplace(); + auto& run = textItem.asTextRun(); run.text = span; run.source = source; run.margin = margin; @@ -1900,7 +1900,7 @@ void RichText::addInlineText( const String& text, const FontStyleConfig& style, return; InlineItem textItem; - auto& run = textItem.data.emplace(); + auto& run = textItem.asTextRun(); run.text = std::make_shared(); run.text->setString( text ); run.text->setStyleConfig( style );