From 522184bf155d22728d1a829e5f30847ae3e7aeb7 Mon Sep 17 00:00:00 2001 From: Karol Kosek Date: Tue, 5 Jan 2021 17:17:46 +0100 Subject: DocumentStyle: escape special chars when saving the style Before the change, the function printed "QString::arg: Argument missing" to stderr when it saw special characters and omitted them from the file name. --- src/documentstyle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/documentstyle.cpp') diff --git a/src/documentstyle.cpp b/src/documentstyle.cpp index 5e4f727..31795d6 100644 --- a/src/documentstyle.cpp +++ b/src/documentstyle.cpp @@ -196,7 +196,7 @@ QString DocumentStyle::createFileNameFromName(const QString &src, int index) result.append('-'); } else { - result.append(QString("").arg(c.unicode())); + result.append(QString::number(c.unicode())); } } -- cgit v1.2.3