summaryrefslogtreecommitdiffstats
path: root/src/runtimerender/Qt3DSRenderUIPLoader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtimerender/Qt3DSRenderUIPLoader.cpp')
-rw-r--r--src/runtimerender/Qt3DSRenderUIPLoader.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/runtimerender/Qt3DSRenderUIPLoader.cpp b/src/runtimerender/Qt3DSRenderUIPLoader.cpp
index 073df7f..24e4c18 100644
--- a/src/runtimerender/Qt3DSRenderUIPLoader.cpp
+++ b/src/runtimerender/Qt3DSRenderUIPLoader.cpp
@@ -960,6 +960,10 @@ struct SRenderUIPLoader : public IDOMReferenceResolver
{
ParseProperties(static_cast<SNode &>(inItem), inParser);
ITERATE_QT3DS_RENDER_TEXT_PROPERTIES
+ // QT3DS-3993: store line feeds as replacement chars in UIP
+ auto text = QString::fromUtf8(inItem.m_Text);
+ text.replace(LINE_BREAK_SUBSTITUTE, "\n");
+ inItem.m_Text = m_StrTable.RegisterStr(text);
}
void ParseProperties(SLightmaps &inItem, IPropertyParser &inParser)
{