Do not update Annotation manager by erase source object presentation

This commit is contained in:
nds 2016-10-31 10:03:13 +03:00
parent bb1693ddb1
commit aebbb9d494
2 changed files with 6 additions and 6 deletions

View File

@ -270,7 +270,7 @@ void GEOMGUI_AnnotationMgr::setDisplayedIndicesInfo( const QString& theEntry, SA
QStringList anIndices = theIndicesInfo.split( ";" ); QStringList anIndices = theIndicesInfo.split( ";" );
for ( int i = 0, aCount = anIndices.size(); i < aCount; i++ ) { for ( int i = 0, aCount = anIndices.size(); i < aCount; i++ ) {
Display( theEntry, anIndices[i], theView ); Display( theEntry, anIndices[i].toInt(), theView );
} }
} }

View File

@ -2179,11 +2179,11 @@ void GEOM_Displayer::AfterErase( SALOME_View* v, const SALOME_OCCPrs* p )
UpdateColorScale(false,false); UpdateColorScale(false,false);
// hide annotations for erased presentation // hide annotations for erased presentation
SUIT_Session* session = SUIT_Session::session(); //SUIT_Session* session = SUIT_Session::session();
SalomeApp_Application* anApp = dynamic_cast<SalomeApp_Application*>( session->activeApplication() ); //SalomeApp_Application* anApp = dynamic_cast<SalomeApp_Application*>( session->activeApplication() );
GeometryGUI* aModule = dynamic_cast<GeometryGUI*>( anApp->activeModule() ); //GeometryGUI* aModule = dynamic_cast<GeometryGUI*>( anApp->activeModule() );
if ( aModule ) //if ( aModule )
aModule->GetAnnotationMgr()->EraseVisibleAnnotations(QString(p->GetEntry()), v); // aModule->GetAnnotationMgr()->EraseVisibleAnnotations(QString(p->GetEntry()), v);
} }
//================================================================= //=================================================================