Salome HOME
Fix bug with PreCAD options as char not taken into account.
authorbourcier <bourcier>
Fri, 18 Oct 2013 15:14:05 +0000 (15:14 +0000)
committerbourcier <bourcier>
Fri, 18 Oct 2013 15:14:05 +0000 (15:14 +0000)
Now, we can use SetPreCADOptionValue( 'tags', 'ignore' ) in TUI and in GUI.

src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx

index 50716f7aa3c39c40f1959b7a98e628669eaa1697..a142f949f2668e4e84cb8fac6ad5db9cae5f1221 100644 (file)
@@ -168,8 +168,8 @@ BLSURFPlugin_Hypothesis::BLSURFPlugin_Hypothesis(int hypId, int studyId, SMESH_G
   }
   i = 0;
   while (preCADcharOptionNames[i][0]) {
-    _preCADdoubleOptions.insert(preCADcharOptionNames[i]);
-    _preCADoption2value[preCADdoubleOptionNames[i++]].clear();
+    _preCADcharOptions.insert(preCADcharOptionNames[i]);
+    _preCADoption2value[preCADcharOptionNames[i++]].clear();
   }
   
 
@@ -478,6 +478,8 @@ void BLSURFPlugin_Hypothesis::SetPreCADOptionValue(const std::string& optionName
     std::string typeName;
     if (i == 0) {
       // empty string
+    } else if (_preCADcharOptions.find(optionName) != _preCADcharOptions.end()) {
+      // do not check strings
     } else if (_preCADdoubleOptions.find(optionName) != _preCADdoubleOptions.end()) {
       // check if value is double
       char * endPtr;