]> SALOME platform Git repositories - plugins/blsurfplugin.git/commitdiff
Salome HOME
Fix compilation w/o GUI V8_1_0b1
authoreap <eap@opencascade.com>
Fri, 12 Aug 2016 15:10:15 +0000 (18:10 +0300)
committereap <eap@opencascade.com>
Fri, 12 Aug 2016 15:10:15 +0000 (18:10 +0300)
src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.cxx

index 8287c7c77312b7a68b005f7b1489f9c00871dc22..fb13d351099250bf5f766e808d815673ab5055bd 100644 (file)
@@ -28,7 +28,6 @@
 #include <SMESH_Gen.hxx>
 #include <SMESH_Gen_i.hxx>
 #include <SMESH_PythonDump.hxx>
-#include <SMESHGUI_Utils.h>
 
 #include <SALOMEDS_wrap.hxx>
 #include <Utils_CorbaException.hxx>
@@ -941,7 +940,8 @@ bool BLSURFPlugin_Hypothesis_i::GetDebug()
 
 void BLSURFPlugin_Hypothesis_i::SetPeriodicTolerance( CORBA::Double tol ) throw (SALOME::SALOME_Exception)
 {
-  if ( SMESH::toStdStr( GetPreCADOptionValue("periodic_tolerance")) != SMESH_Comment( tol ))
+  bool isDefault;
+  if ( GetImpl()->GetPreCADOptionValue("periodic_tolerance",&isDefault) != SMESH_Comment( tol ))
   {
     try
     {
@@ -994,7 +994,8 @@ char* BLSURFPlugin_Hypothesis_i::GetRequiredEntities()
 
 void BLSURFPlugin_Hypothesis_i::SetSewingTolerance( CORBA::Double tol ) throw (SALOME::SALOME_Exception)
 {
-  if ( SMESH::toStdStr( GetPreCADOptionValue("sewing_tolerance")) != SMESH_Comment( tol ))
+  bool isDefault;
+  if ( GetImpl()->GetPreCADOptionValue("sewing_tolerance",&isDefault) != SMESH_Comment( tol ))
   {
     try
     {