From: eap Date: Fri, 12 Aug 2016 15:10:15 +0000 (+0300) Subject: Fix compilation w/o GUI X-Git-Tag: V8_1_0b1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4e010dd258759ebd2f6b7b9f3c313a4aea0670e6;p=plugins%2Fblsurfplugin.git Fix compilation w/o GUI --- 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 {