diff options
Diffstat (limited to 'templatelayout.cpp')
-rw-r--r-- | templatelayout.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/templatelayout.cpp b/templatelayout.cpp index 9a9dc9656..79508d6db 100644 --- a/templatelayout.cpp +++ b/templatelayout.cpp @@ -104,6 +104,7 @@ void TemplateLayout::writeTemplate(QString template_name, QString grantlee_templ QFile qfile(getSubsurfaceDataPath("printing_templates") + QDir::separator() + template_name); if (qfile.open(QFile::ReadWrite | QFile::Text)) { qfile.write(grantlee_template.toUtf8().data()); + qfile.resize(qfile.pos()); qfile.close(); } } |