Remove FileVersion from RestoreDocFile, convert point data back to floats
This commit is contained in:
@@ -674,10 +674,11 @@ void Document::Restore(Base::XMLReader &reader)
|
||||
/**
|
||||
* Restores the properties of the view providers.
|
||||
*/
|
||||
void Document::RestoreDocFile(Base::Reader &reader, const int FileVersion)
|
||||
void Document::RestoreDocFile(Base::Reader &reader)
|
||||
{
|
||||
// We must create an XML parser to read from the input stream
|
||||
Base::XMLReader xmlReader("GuiDocument.xml", reader);
|
||||
xmlReader.FileVersion = reader.getFileVersion();
|
||||
|
||||
int i,Cnt;
|
||||
|
||||
@@ -722,7 +723,7 @@ void Document::RestoreDocFile(Base::Reader &reader, const int FileVersion)
|
||||
|
||||
// In the file GuiDocument.xml new data files might be added
|
||||
if (!xmlReader.getFilenames().empty())
|
||||
xmlReader.readFiles(static_cast<zipios::ZipInputStream&>(reader));
|
||||
xmlReader.readFiles(static_cast<zipios::ZipInputStream&>(reader.getStream()));
|
||||
|
||||
// reset modified flag
|
||||
setModified(false);
|
||||
|
||||
Reference in New Issue
Block a user