From 542379124a4636d0df6d375be60084fcb67c41a2 Mon Sep 17 00:00:00 2001 From: wandererfan Date: Sun, 20 Oct 2019 08:15:27 -0400 Subject: [PATCH] [TD]Avoid Spanish char issue in SVG Export (4170) --- src/Mod/TechDraw/Gui/QGVPage.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/TechDraw/Gui/QGVPage.cpp b/src/Mod/TechDraw/Gui/QGVPage.cpp index 626503190d..7afa054883 100644 --- a/src/Mod/TechDraw/Gui/QGVPage.cpp +++ b/src/Mod/TechDraw/Gui/QGVPage.cpp @@ -781,9 +781,9 @@ void QGVPage::saveSvg(QString filename) const QString docName( QString::fromUtf8(page->getDocument()->getName()) ); const QString pageName( QString::fromUtf8(page->getNameInDocument()) ); - QString svgDescription = tr("Drawing page:") + QString::fromUtf8(" ") + + QString svgDescription = QString::fromUtf8("Drawing page: ") + pageName + - tr(" exported from FreeCAD document:") + QString::fromUtf8(" ") + + QString::fromUtf8(" exported from FreeCAD document: ") + docName; QSvgGenerator svgGen; @@ -802,7 +802,7 @@ void QGVPage::saveSvg(QString filename) // the width and height attributes of the element." >> but Inkscape won't read it without size info?? svgGen.setViewBox(QRect(0, 0, pixelWidth, pixelHeight)); - svgGen.setTitle(QObject::tr("FreeCAD SVG Export")); + svgGen.setTitle(QString::fromUtf8("FreeCAD SVG Export")); svgGen.setDescription(svgDescription); Gui::Selection().clearSelection();