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.

This commit is contained in:
wmayer
2020-05-01 16:14:51 +02:00
parent 76559e9c92
commit ae159ed44d

View File

@@ -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;