mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-15 02:13:07 +05:00
Do not update Annotation manager by erase source object presentation
This commit is contained in:
parent
bb1693ddb1
commit
aebbb9d494
@ -270,7 +270,7 @@ void GEOMGUI_AnnotationMgr::setDisplayedIndicesInfo( const QString& theEntry, SA
|
||||
|
||||
QStringList anIndices = theIndicesInfo.split( ";" );
|
||||
for ( int i = 0, aCount = anIndices.size(); i < aCount; i++ ) {
|
||||
Display( theEntry, anIndices[i], theView );
|
||||
Display( theEntry, anIndices[i].toInt(), theView );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2179,11 +2179,11 @@ void GEOM_Displayer::AfterErase( SALOME_View* v, const SALOME_OCCPrs* p )
|
||||
UpdateColorScale(false,false);
|
||||
|
||||
// hide annotations for erased presentation
|
||||
SUIT_Session* session = SUIT_Session::session();
|
||||
SalomeApp_Application* anApp = dynamic_cast<SalomeApp_Application*>( session->activeApplication() );
|
||||
GeometryGUI* aModule = dynamic_cast<GeometryGUI*>( anApp->activeModule() );
|
||||
if ( aModule )
|
||||
aModule->GetAnnotationMgr()->EraseVisibleAnnotations(QString(p->GetEntry()), v);
|
||||
//SUIT_Session* session = SUIT_Session::session();
|
||||
//SalomeApp_Application* anApp = dynamic_cast<SalomeApp_Application*>( session->activeApplication() );
|
||||
//GeometryGUI* aModule = dynamic_cast<GeometryGUI*>( anApp->activeModule() );
|
||||
//if ( aModule )
|
||||
// aModule->GetAnnotationMgr()->EraseVisibleAnnotations(QString(p->GetEntry()), v);
|
||||
}
|
||||
|
||||
//=================================================================
|
||||
|
Loading…
Reference in New Issue
Block a user