Commit 8571356a authored by Ivan Yossi's avatar Ivan Yossi 👌

Fix multiline text looses lines.

BUG:399288
parent 79ad1310
......@@ -838,7 +838,7 @@ bool KoSvgTextShapeMarkupConverter::convertSvgToDocument(const QString &svgText,
if (newBlock && absoluteLineOffset > 0) {
KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE(!formatStack.isEmpty(), false);
KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE(cursor.block().layout()->lineCount() == 1, false);
KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE(cursor.block().layout()->lineCount() > 0, false);
QTextLine line = cursor.block().layout()->lineAt(0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment