From 4a32ffeddea99b9f1a8a05624388b523b2cc84a3 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Tue, 19 Oct 2010 00:05:02 +0200 Subject: [PATCH] bugfixes, primitive clipping for cylinders --- src/qtgui/save.cpp | 7 +++++-- src/shapes/cylinder.cpp | 13 ++++++------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/qtgui/save.cpp b/src/qtgui/save.cpp index a44ca363..829de03e 100644 --- a/src/qtgui/save.cpp +++ b/src/qtgui/save.cpp @@ -331,7 +331,9 @@ void saveScene(QWidget *parent, SceneContext *ctx, const QString &targetFile) { QString textContent = doc.toString(); QTextStream input(&textContent); QTextStream output(&file); - QRegExp nameRegExp("name=\"[^\"]*\""), + QRegExp + filenameRegExp("filename=\"[^\"]*\""), + nameRegExp("name=\"[^\"]*\""), tagRegExp("^\\s*<([a-zA-Z]+) "), leadingSpaces("^ *"), closeTag("^\\s*