{
for( Standard_Integer anIndex = 1, aLength = aSeq.Length(); anIndex <= aLength; anIndex++ )
{
- Handle(HYDROData_Object) anObject = aSeq.Value( anIndex );
+ Handle(HYDROData_Entity) anObject = aSeq.Value( anIndex );
if( !anObject.IsNull() )
{
aFullSeq.Append( anObject );
// collect the back-references
ObjectKind aKind = anObject->GetKind();
- if( aKind == KIND_IMAGE || aKind == KIND_POLYLINE )
+ if( aKind == KIND_IMAGE || aKind == KIND_POLYLINEXY )
{
HYDROData_SequenceOfObjects anObjects;
QStringList aNames;
startDocOperation();
for( Standard_Integer anIndex = 1, aLength = aFullSeq.Length(); anIndex <= aLength; anIndex++ )
{
- Handle(HYDROData_Object) anObject = aFullSeq.Value( anIndex );
+ Handle(HYDROData_Entity) anObject = aFullSeq.Value( anIndex );
if( !anObject.IsNull() && !anObject->IsRemoved() )
anObject->Remove();
}
commitDocOperation();
- module()->update( UF_Model | UF_Viewer );
+ module()->update( UF_Model | UF_Viewer | UF_OCCViewer );
commit();
}