From 657cded29cf2fa7bae0141b4ba301af4461980d1 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 12 Aug 2016 18:10:15 +0300 Subject: [PATCH] Fix compilation w/o GUI --- src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.cxx b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.cxx index 8287c7c..fb13d35 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.cxx @@ -28,7 +28,6 @@ #include #include #include -#include #include #include @@ -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 { -- 2.39.2