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