]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Useful commits from master
authormpv <mikhail.ponikarov@opencascade.com>
Wed, 27 Jun 2018 08:26:43 +0000 (11:26 +0300)
committermpv <mikhail.ponikarov@opencascade.com>
Wed, 27 Jun 2018 08:26:43 +0000 (11:26 +0300)
env.sh
src/GeomAlgoAPI/GeomAlgoAPI_Filling.cpp
src/ModelHighAPI/ModelHighAPI_Dumper.cpp
src/ModuleBase/ModuleBase_ParamSpinBox.cpp
src/PartSet/PartSet_OperationPrs.cpp

diff --git a/env.sh b/env.sh
index 0bdc891c886c3e9ef0401615d6c1c2822909119f..a1de6f2e2b369b0e92874ec372cb6b0d6744a688 100644 (file)
--- a/env.sh
+++ b/env.sh
@@ -11,7 +11,7 @@ export AUT_DIR=$(pwd)
 export TOOLS_DIR=$(pwd)
 
 export HOME_OLD=$HOME
-source /dn46/SALOME/series8x/current-2018-05-03/start.sh
+source /dn46/SALOME/series8x/current-2018-05-30/start.sh
 export HOME=$HOME_OLD
 
 # Path to solvespace-2
index f08f44a4f7b8dcfb877394bd6510ef3e03ae8aff..3609b06ff66406806f0eb8d8678fd1cbc129c277 100644 (file)
@@ -102,7 +102,8 @@ void GeomAlgoAPI_Filling::buildByEdges()
 
   // check myMaxDegree >= aCurves.size() - 1 to be able to interpolate a surface
   if (myMaxDegree + 1 < aNbCurves) {
-    myError = "Unable to interpolate surface, Max deg + 1 should be greater or equal than number of sections.";
+    myError = "Unable to interpolate surface,"
+       " Max deg + 1 should be greater or equal than number of sections.";
     return;
   }
 
index 6e6a7090b206c795e906eeb3f33d67e66edcd532..985e6761ea60da801a77c61a13e2fcb18134a133 100644 (file)
@@ -174,7 +174,8 @@ const std::string& ModelHighAPI_Dumper::name(const EntityPtr& theEntity,
       int aFullIndex = 0;
       NbFeaturesMap::const_iterator aFIt = myFeatureCount.begin();
       for (; aFIt != myFeatureCount.end(); ++aFIt) {
-        std::map<std::string, std::pair<int, int> >::const_iterator aFound = aFIt->second.find(aKind);
+        std::map<std::string, std::pair<int, int> >::const_iterator aFound =
+          aFIt->second.find(aKind);
         if (aFound != aFIt->second.end())
           aFullIndex += aFound->second.first;
       }
index 37d888213e2b456dd8bc191f0c19aad0eb7508d3..4e99f887e8537108c4e8c0946888b8a31ca5628a 100644 (file)
@@ -40,6 +40,7 @@
 
 #include <string>
 #include <iostream>
+#include <cfloat>
 
 //#define DEBUG_COMPLETE_WITH_PARAMETERS
 
index 720a0ea9c763a169456ffc8677395a8e3a22c595..1781e96ae3fb8d8807883b5c3b0cfbdd5fefc5ee 100755 (executable)
@@ -141,7 +141,12 @@ void PartSet_OperationPrs::Compute(
         setWidth(aDrawer, aWidth);
       }
     }
-    StdPrs_WFShape::Add(thePresentation, aShape, aDrawer);
+    try {
+      StdPrs_WFShape::Add(thePresentation, aShape, aDrawer);
+    }
+    catch (...) {
+      return;
+    }
   }
   Set(aComp);
   if (!aReadyToDisplay) {