]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix of the bug IPAL20607 - Crash on Gauss Points for imported field
authorouv <ouv@opencascade.com>
Fri, 26 Dec 2008 12:28:26 +0000 (12:28 +0000)
committerouv <ouv@opencascade.com>
Fri, 26 Dec 2008 12:28:26 +0000 (12:28 +0000)
src/VISU_I/VISU_GaussPoints_i.cc

index cc463658c177df4d99aae558b3dd3db97ccd2487..9ba0d76a45f4687724ea94dbbc6b56ed40541a34 100644 (file)
@@ -37,7 +37,7 @@
 #include "VISU_ScalarBarCtrl.hxx"
 #include <VISU_ScalarBarActor.hxx>
 #include "VISU_LookupTable.hxx"
-#include "VISU_Convertor.hxx"
+#include "VISU_MedConvertor.hxx"
 
 #include "SUIT_ResourceMgr.h"
 
@@ -77,6 +77,8 @@ VISU::GaussPoints_i
                                                         theEntity,
                                                         theFieldName,
                                                         theTimeStampNumber);
+    if(!dynamic_cast<const VISU_MedConvertor*>(anInput.get()))
+      return aResult;
     size_t aSize = anInput->GetTimeStampOnGaussPtsSize(theMeshName,
                                                       VISU::TEntity(theEntity),
                                                       theFieldName,