Salome HOME
Fix Edit Mesh regression
authoreap <eap@opencascade.com>
Thu, 5 Sep 2019 17:45:46 +0000 (20:45 +0300)
committereap <eap@opencascade.com>
Thu, 5 Sep 2019 17:45:46 +0000 (20:45 +0300)
   Pb: no 2D algo selected when editing Mesh_3 of SALOME_TESTS/Grids/smesh/imps_09/K7

src/SMESHGUI/SMESHGUI_MeshOp.cxx

index cb6efcb78ff64343ce12e6cfa97f83f62356bc76..443a8a86f6bb9273b22dd7bf384704d888d7a3ca 100644 (file)
@@ -1461,6 +1461,7 @@ void SMESHGUI_MeshOp::setFilteredAlgoData()
   updateHypoSets(); // it sets myAvailableHypData by curMeshType
 
   // restore current algorithms according to changed myAvailableHypData
   updateHypoSets(); // it sets myAvailableHypData by curMeshType
 
   // restore current algorithms according to changed myAvailableHypData
+  algosAvailable.clear();
   for ( int dim = 0; dim <= 3; ++dim )
   {
     int algoIndex = myAvailableHypData[ dim ][ Algo ].indexOf( curAlgos[ dim ]);
   for ( int dim = 0; dim <= 3; ++dim )
   {
     int algoIndex = myAvailableHypData[ dim ][ Algo ].indexOf( curAlgos[ dim ]);