Commit b2cf75b2 authored by Jan Möbius's avatar Jan Möbius
Browse files

Fixed crash when trying to save object via script with an id that does not exist.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@20178 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 13bbbdf1
......@@ -121,7 +121,13 @@ bool FilePolyLinePlugin::saveObject(int _id, QString _filename)
PolyLineObjectSerializer serializer(pol);
serializer.serialize(fout);
fout.close();
return true;
} else {
return false;
}
} else {
emit log(LOGERR, tr("saveObject : cannot get object id %1 for save name %2").arg(_id).arg(_filename) );
return false;
}
return true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment