]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Consider OCCT version
authorjfa <jfa@opencascade.com>
Mon, 28 Aug 2006 15:05:30 +0000 (15:05 +0000)
committerjfa <jfa@opencascade.com>
Mon, 28 Aug 2006 15:05:30 +0000 (15:05 +0000)
src/CONVERTOR/VISU_MedConvertor.cxx
src/VISU_I/VISU_Gen_i.cc
src/VISU_I/VISU_TimeAnimation.cxx

index 7df59c1e2e1276305041ab2e1996f621f7c7ef9c..7fa6c0c3cefd489c586475cbbe1fc67611f9cb40 100644 (file)
@@ -1401,7 +1401,9 @@ VISU_MedConvertor
            
 #ifndef _DEXCEPT_
             try{
-                OCC_CATCH_SIGNALS;
+#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
+              OCC_CATCH_SIGNALS;
+#endif
 #endif
                MED::PTimeStampInfo aTimeStampInfo = aMed->GetPTimeStampInfo(aFieldInfo,
                                                                             aMEntity,
index ca54a2f6102a235199978934309238e6124d8cb5..0540ad5ccfe5b2ccdde28f7311c3e87231a864d0 100644 (file)
@@ -243,7 +243,9 @@ namespace VISU
   {
 #ifndef _DEXCEPT_
     try{
+#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
       OCC_CATCH_SIGNALS;
+#endif
 #endif
       if(theColoredPrs3d->Create(theMeshName,theEntity,theFieldName,int(theIteration)))
        return true;
index ce7b42ad8d2e295a278f14cf1153827fc808558c..410a432e596d4ea63c2a29e9d43aa9894e66b935 100644 (file)
@@ -238,7 +238,9 @@ namespace
       bool anIsCreated = false;
       TPrs3d* aPresent = new TPrs3d(theResult, false);
       try{       
+#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
         OCC_CATCH_SIGNALS;
+#endif
        if(aPresent->Create(aMeshName.latin1(),anEntity,aFieldName.latin1(),aTimeStampId)){
          anIsCreated = true;
          theData.myPrs[aFrameId++] = aPresent;