]> 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:27:34 +0000 (12:27 +0000)
committerouv <ouv@opencascade.com>
Fri, 26 Dec 2008 12:27:34 +0000 (12:27 +0000)
src/VISU_I/VISU_GaussPoints_i.cc

index 438fe9503a63eb90f11b0747f540b2839041b878..2267585565a2dd3348f1cd9e9eb3d70a7dda2fd1 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,