]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix bug 15976: IOLS. Problem with dynamic_cast and dynamically loaded libraries.
authorjfa <jfa@opencascade.com>
Thu, 24 May 2007 13:23:24 +0000 (13:23 +0000)
committerjfa <jfa@opencascade.com>
Thu, 24 May 2007 13:23:24 +0000 (13:23 +0000)
src/CONVERTOR/VISU_MedConvertor.cxx

index fa6710bc9e1ff5789fffd0ce5aea30b1db31f28c..31cf0d9d50fde8048f5e296f1b89124f51eb1d45 100644 (file)
@@ -1673,13 +1673,13 @@ VISU_MedConvertor
                  const MED::TGeom2Gauss& aGeom2Gauss = aTimeStampInfo->GetGeom2Gauss();
 
                  if(aFieldInfo->GetType() == MED::eFLOAT64)
-                   BuildTimeStampMinMax<MED::TFloatTimeStampValue>(aTimeStampValue,
+                   BuildTimeStampMinMax<MED::TFloatTimeStampValue>(CastToFloatTimeStampValue(aTimeStampValue),
                                                                    aGeom2Gauss,
                                                                    aMinMaxArr,
                                                                    aNbComp,
                                                                    aNbComp2);
                  else
-                   BuildTimeStampMinMax<MED::TIntTimeStampValue>(aTimeStampValue,
+                   BuildTimeStampMinMax<MED::TIntTimeStampValue>(CastToIntTimeStampValue(aTimeStampValue),
                                                                  aGeom2Gauss,
                                                                  aMinMaxArr,
                                                                  aNbComp,
@@ -2859,12 +2859,12 @@ LoadValForTime(const MED::PWrapper& theMed,
           endl);
 
   if(aFieldInfo->GetType() == MED::eFLOAT64)
-    FillValForTime<MED::TFloatTimeStampValue>(aTimeStampValue,
+    FillValForTime<MED::TFloatTimeStampValue>(CastToFloatTimeStampValue(aTimeStampValue),
                                              aGeom2SubProfile,
                                              theValForTime,
                                              theField);
   else
-    FillValForTime<MED::TIntTimeStampValue>(aTimeStampValue,
+    FillValForTime<MED::TIntTimeStampValue>(CastToIntTimeStampValue(aTimeStampValue),
                                            aGeom2SubProfile,
                                            theValForTime,
                                            theField);