X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomValidators%2FGeomValidators_Positive.cpp;h=13e9a0241e4bd6edf077998d133c4e5056e412d1;hb=d5d78920316491975a67f76578982b401cdfe71d;hp=241cf7851bac718df3868e8a3b13ee1c32170ed4;hpb=2532fb2df83ee1ddd9ff3e8b381d3788eaa15b69;p=modules%2Fshaper.git diff --git a/src/GeomValidators/GeomValidators_Positive.cpp b/src/GeomValidators/GeomValidators_Positive.cpp index 241cf7851..13e9a0241 100644 --- a/src/GeomValidators/GeomValidators_Positive.cpp +++ b/src/GeomValidators/GeomValidators_Positive.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// Copyright (C) 2014-2019 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -12,9 +12,9 @@ // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // #include "GeomValidators_Positive.h" @@ -47,7 +47,6 @@ bool GeomValidators_Positive::isValid(const AttributePtr& theAttribute, double aMinValue = 1.e-5; if(theArguments.size() == 1) { std::list::const_iterator anIt = theArguments.begin(); - char *aErr; double aValue = Config_PropManager::stringToDouble((*anIt).c_str()); if(aValue != 0) { // very probably ok @@ -63,7 +62,7 @@ bool GeomValidators_Positive::isValid(const AttributePtr& theAttribute, return false; } if (aDouble->value() <= aMinValue) { - theError = "Double is not positive."; + theError = "Value is too small."; return false; } }