From ae159ed44decea7cab4d9d18b8424a39d4f72b81 Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 1 May 2020 16:14:51 +0200 Subject: [PATCH] Gui: [skip ci] fixes #0004310: Std_FreezeViews command: The settings of frozen views resulting from loading a *.cam file will not be saved in a new *.cam file. --- src/Gui/CommandView.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Gui/CommandView.cpp b/src/Gui/CommandView.cpp index 0426c17b61..855139e7d2 100644 --- a/src/Gui/CommandView.cpp +++ b/src/Gui/CommandView.cpp @@ -346,12 +346,12 @@ void StdCmdFreezeViews::onSaveViews() // remove the first line because it's a comment like '#Inventor V2.1 ascii' QString viewPos; - if ( !data.isEmpty() ) { + if (!data.isEmpty()) { QStringList lines = data.split(QString::fromLatin1("\n")); - if ( lines.size() > 1 ) { + if (lines.size() > 1) { lines.pop_front(); - viewPos = lines.join(QString::fromLatin1(" ")); } + viewPos = lines.join(QString::fromLatin1(" ")); } str << " " << endl;