Added FileVersion attribute to XML format to distinguish legacy float binary files from new double binary files

This commit is contained in:
jrheinlaender
2013-03-27 11:47:18 +04:30
parent 5931944beb
commit ad6444053b
39 changed files with 119 additions and 78 deletions

View File

@@ -160,7 +160,7 @@ void MergeDocuments::SaveDocFile (Base::Writer & w) const
document->exportObjects(objects, w);
}
void MergeDocuments::RestoreDocFile(Base::Reader & reader)
void MergeDocuments::RestoreDocFile(Base::Reader & reader, const int FileVersion)
{
std::vector<App::DocumentObject*> obj = objects;
// We must create an XML parser to read from the input stream