From ad1f9cd0c44677d53bf3c65d6059dc217f57f1a8 Mon Sep 17 00:00:00 2001 From: Uwe Date: Fri, 24 Feb 2023 03:44:07 +0100 Subject: [PATCH] [Part] fix encoding bug - fixes the regression by #7255 -> the degree sign cannot be decoded as Latin1 --- src/Mod/Part/Gui/DlgPrimitives.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Part/Gui/DlgPrimitives.cpp b/src/Mod/Part/Gui/DlgPrimitives.cpp index c93edab516..2090422c59 100644 --- a/src/Mod/Part/Gui/DlgPrimitives.cpp +++ b/src/Mod/Part/Gui/DlgPrimitives.cpp @@ -1951,7 +1951,7 @@ void DlgPrimitives::acceptChanges(const QString& placement) QString command = primitive->change(objectName, placement); // execute command, a transaction is already opened - Gui::Command::runCommand(Gui::Command::App, command.toLatin1()); + Gui::Command::runCommand(Gui::Command::App, command.toUtf8()); } void DlgPrimitives::accept(const QString& placement)