]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Do not update Annotation manager by erase source object presentation
authornds <natalia.ermolaeva@opencascade.com>
Mon, 31 Oct 2016 07:03:13 +0000 (10:03 +0300)
committernds <natalia.ermolaeva@opencascade.com>
Mon, 31 Oct 2016 07:03:13 +0000 (10:03 +0300)
src/GEOMGUI/GEOMGUI_AnnotationMgr.cxx
src/GEOMGUI/GEOM_Displayer.cxx

index 4c37abb477286a98b846ac4bf8e600329294370c..91d063a072ae2e7f9ed852fe4de4dac96b2560b3 100755 (executable)
@@ -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 );
   }
 }
 
index 4e8c747aa719b4111c882c95bd1d52b510df9357..2727281fcd5c0fc8adad9cb394b3a69dc6d3b4f1 100755 (executable)
@@ -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);
 }
 
 //=================================================================