]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
bos #18601 GMSH is missing from SMESH algorithms when 2D model is selected
authorvsr <vsr@opencascade.com>
Tue, 28 Jan 2020 15:04:33 +0000 (18:04 +0300)
committervsr <vsr@opencascade.com>
Tue, 28 Jan 2020 15:05:11 +0000 (18:05 +0300)
src/SMESHGUI/SMESHGUI_MeshOp.cxx

index 8ee061cd71400c8d44b125d2d585a1ca2785b60a..40fb8cb6c39e87804924df91a73e6b0e32b697bf 100644 (file)
@@ -780,7 +780,7 @@ bool SMESHGUI_MeshOp::isCompatibleToGeometry(HypothesisData* theAlgoData,
 
   bool isApplicable = false;
   if ( myGeomEntry == myLastGeomEntry && !myGeomEntry.isEmpty() ) {
-    THypLabelIsAppMap::const_iterator lab2isApp = myHypMapIsApplicable.find( theAlgoData->Label );
+    THypLabelIsAppMap::const_iterator lab2isApp = myHypMapIsApplicable.find( theAlgoData->TypeName );
     if ( lab2isApp != myHypMapIsApplicable.end() ) {
       isApplicable = lab2isApp.value();
       return isApplicable;
@@ -791,7 +791,7 @@ bool SMESHGUI_MeshOp::isCompatibleToGeometry(HypothesisData* theAlgoData,
     toCheckIsApplicableToAll = ( myGeom->GetType() == GEOM_GROUP );
 
   isApplicable = SMESH::IsApplicable( theAlgoData->TypeName, myGeom, toCheckIsApplicableToAll );
-  myHypMapIsApplicable.insert( theAlgoData->Label, isApplicable );
+  myHypMapIsApplicable.insert( theAlgoData->TypeName, isApplicable );
   return isApplicable;
 }