]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Merge branch 'BR_v14_rc' of ssh://git.salome-platform.org/modules/hydro into BR_v14_rc
authormzn <mzn@opencascade.com>
Thu, 25 Jun 2015 13:11:34 +0000 (16:11 +0300)
committermzn <mzn@opencascade.com>
Thu, 25 Jun 2015 13:11:34 +0000 (16:11 +0300)
1  2 
src/HYDROGUI/HYDROGUI_Module.cxx

index 80d85173d25091d5edd911cb4c128ed798089ae8,60d109b32a0d713e5232d2d6cf969879f1aa4567..a4177f665ba69b50ddd94c16ac896f83eb28ff7c
@@@ -1803,23 -1799,3 +1804,23 @@@ bool HYDROGUI_Module::isLandCoversScala
  {
    return myLandCoverColoringMap.contains( theViewId );
  }
- }
 +
 +void HYDROGUI_Module::setObjectRemoved( const Handle(HYDROData_Entity)& theObject )
 +{
 +  if ( theObject.IsNull() || !theObject->IsRemoved() ) {
 +    return;
 +  }
 +
 +  if ( theObject->GetKind() == KIND_STRICKLER_TABLE ) {
 +    Handle(HYDROData_StricklerTable) aTable = 
 +      Handle(HYDROData_StricklerTable)::DownCast( theObject );
 +    QList<int> aViewIds;
 +    QMutableMapIterator<int, Handle(HYDROData_StricklerTable)> anIter( myLandCoverColoringMap );
 +    while ( anIter.hasNext() ) {
 +      if ( HYDROGUI_DataObject::dataObjectEntry( anIter.next().value() ) == 
 +           HYDROGUI_DataObject::dataObjectEntry( aTable ) ) {
 +        anIter.remove();
 +      }
 +    }
 +  }
++}