]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for Bug IPAL13704:
authorenk <enk@opencascade.com>
Fri, 8 Dec 2006 13:50:49 +0000 (13:50 +0000)
committerenk <enk@opencascade.com>
Fri, 8 Dec 2006 13:50:49 +0000 (13:50 +0000)
Crash VISU module on create scalar map presentation

src/CONVERTOR/VISU_Convertor_impl.cxx

index c0a0833d588b044f655182ac4a058b1819be4195..d3f33022b98e494b61673a742eb89a8bc958df06 100644 (file)
@@ -2562,8 +2562,10 @@ VISU_Convertor_impl
       aVTKMeshOnEntity = aMeshOnEntityMap[VISU::CELL_ENTITY];
     else if(aMeshOnEntityMap.find(VISU::FACE_ENTITY) != aMeshOnEntityMap.end())
       aVTKMeshOnEntity = aMeshOnEntityMap[VISU::FACE_ENTITY];
-    else if(aMeshOnEntityMap.find(VISU::NODE_ENTITY) != aMeshOnEntityMap.end())
+    else if(aMeshOnEntityMap.find(VISU::EDGE_ENTITY) != aMeshOnEntityMap.end())
       aVTKMeshOnEntity = aMeshOnEntityMap[VISU::EDGE_ENTITY];
+    else if(aMeshOnEntityMap.find(VISU::NODE_ENTITY) != aMeshOnEntityMap.end())
+      aVTKMeshOnEntity = aMeshOnEntityMap[VISU::NODE_ENTITY];
   }else
     aVTKMeshOnEntity = aMeshOnEntity;