mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-28 17:16:29 +03:00
Should fix build in some envs.
This commit is contained in:
@@ -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<InlineItem::TextRun>();
|
||||
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<InlineItem::TextRun>();
|
||||
auto& run = textItem.asTextRun();
|
||||
run.text = std::make_shared<Text>();
|
||||
run.text->setString( text );
|
||||
run.text->setStyleConfig( style );
|
||||
|
||||
Reference in New Issue
Block a user