]> SALOME platform Git repositories - plugins/blsurfplugin.git/commitdiff
Salome HOME
0022015: [CEA 734] "Relative value" disappear at hypothesis edition BR_PORTING_VTK6
authoreap <eap@opencascade.com>
Thu, 20 Dec 2012 11:19:30 +0000 (11:19 +0000)
committereap <eap@opencascade.com>
Thu, 20 Dec 2012 11:19:30 +0000 (11:19 +0000)
  Attempt #2

src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.cxx

index b96cd4b2029df5df2227964772f418d810a5ffc8..1cf2944ef02e0d5da61d989f94c3fa8fa9471980 100644 (file)
@@ -188,7 +188,7 @@ void BLSURFPlugin_Hypothesis_i::SetMinSize(CORBA::Double theMinSize) {
 //=============================================================================
 void BLSURFPlugin_Hypothesis_i::SetMinSizeRel(CORBA::Double theMinSize) {
   ASSERT(myBaseImpl);
-  if ( !IsMinSizeRel() && (GetMinSize() != theMinSize) ) {
+  if ( !IsMinSizeRel() || (GetMinSize() != theMinSize) ) {
     this->GetImpl()->SetMinSize(theMinSize, true);
     SMESH::TPythonDump() << _this() << ".SetMinSize( " << theMinSize << ", isRelative = True )";
   }
@@ -219,7 +219,7 @@ void BLSURFPlugin_Hypothesis_i::SetMaxSize(CORBA::Double theMaxSize) {
 //=============================================================================
 void BLSURFPlugin_Hypothesis_i::SetMaxSizeRel(CORBA::Double theMaxSize) {
   ASSERT(myBaseImpl);
-  if ( !IsMaxSizeRel() && (GetMaxSize() != theMaxSize) ) {
+  if ( !IsMaxSizeRel() || (GetMaxSize() != theMaxSize) ) {
     this->GetImpl()->SetMaxSize(theMaxSize, true);
     SMESH::TPythonDump() << _this() << ".SetMaxSize( " << theMaxSize << ", isRelative = True )";
   }