Add SchemaVersion to RestoreDocFile to distinquish double from float binary
This commit is contained in:
@@ -261,8 +261,8 @@ void PropertyPartShape::SaveDocFile (Base::Writer &writer) const
|
||||
const TopoDS_Shape& myShape = copy.Shape();
|
||||
BRepTools::Clean(myShape); // remove triangulation
|
||||
|
||||
// create a temporary file and copy the content to the zip stream
|
||||
// once the tmp. filename is known use always the same because otherwise
|
||||
// create a temporary file and copy the content to the zip stream
|
||||
// once the tmp. filename is known use always the same because otherwise
|
||||
// we may run into some problems on the Linux platform
|
||||
static Base::FileInfo fi(Base::FileInfo::getTempFileName());
|
||||
|
||||
@@ -304,7 +304,7 @@ void PropertyPartShape::SaveDocFile (Base::Writer &writer) const
|
||||
fi.deleteFile();
|
||||
}
|
||||
|
||||
void PropertyPartShape::RestoreDocFile(Base::Reader &reader)
|
||||
void PropertyPartShape::RestoreDocFile(Base::Reader &reader, const int DocumentSchema)
|
||||
{
|
||||
BRep_Builder builder;
|
||||
|
||||
@@ -397,7 +397,7 @@ void PropertyShapeHistory::SaveDocFile (Base::Writer &writer) const
|
||||
{
|
||||
}
|
||||
|
||||
void PropertyShapeHistory::RestoreDocFile(Base::Reader &reader)
|
||||
void PropertyShapeHistory::RestoreDocFile(Base::Reader &reader, const int DocumentSchema)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -505,7 +505,7 @@ void PropertyFilletEdges::SaveDocFile (Base::Writer &writer) const
|
||||
}
|
||||
}
|
||||
|
||||
void PropertyFilletEdges::RestoreDocFile(Base::Reader &reader)
|
||||
void PropertyFilletEdges::RestoreDocFile(Base::Reader &reader, const int DocumentSchema)
|
||||
{
|
||||
Base::InputStream str(reader);
|
||||
uint32_t uCt=0;
|
||||
|
||||
Reference in New Issue
Block a user