diff --git a/src/chatlog/content/text.cpp b/src/chatlog/content/text.cpp index 55525281a..b8783066b 100644 --- a/src/chatlog/content/text.cpp +++ b/src/chatlog/content/text.cpp @@ -51,9 +51,11 @@ Text::~Text() void Text::setText(const QString& txt) { text = txt; - text.replace("\n", "
"); detectAnchors(); + + text.replace("\n", "
"); + ensureIntegrity(); freeResources(); }