DiscussionsIssue archiveOCCT:Application Framework

Archived issue #0020303

Incorrect writing of Stop shape Index in NamingDriver of Binary format

Open CASCADEOCCT:Application Frameworkclosed0 public notes

Search issues

Description

If Stop shape is null the Index has incorrect value.
It should be nullified for this case.

Additional information

Documentation remark, added by Author 2009-05-20 10:03:36:

Improvements:
The pure bug was fixed:
The local variable <Standard_Integer anIndx> was used as target container for
calculated Index. In the specified case (if StopShape is Null) the value of
<anIndx> calculated in the previous step was written to file. It is a bug. Now
before keeping in file the <anIndx> is nullified.
Changes:
The method (keeping Naming attribute in persistence file)
void BinMNaming_NamingDriver::Paste (const Handle(TDF_Attribute)& theSource,
                                       BinObjMgt_Persistent& theTarget,
                                       BinObjMgt_SRelocationTable&
theRelocTable) const
is modified.
Modified entities:
BinMNaming
-----------
Attachment 1 (CXX)

Public activity

No public notes

Participants are labeled by their role within this record.