Skip to content

Commit

Permalink
Gui: [skip ci] fixes #4310: Std_FreezeViews command: The settings of …
Browse files Browse the repository at this point in the history
…frozen views resulting from loading a *.cam file will not be saved in a new *.cam file.
  • Loading branch information
wwmayer committed May 1, 2020
1 parent 76559e9 commit ae159ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Gui/CommandView.cpp
Expand Up @@ -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 << " <Camera settings=\"" << viewPos.toLatin1().constData() << "\"/>" << endl;
Expand Down

0 comments on commit ae159ed

Please sign in to comment.