Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Task #3237: Allow usage of accented characters in ObjectBrowser
[modules/shaper.git]
/
src
/
GeomValidators
/
GeomValidators_Positive.cpp
diff --git
a/src/GeomValidators/GeomValidators_Positive.cpp
b/src/GeomValidators/GeomValidators_Positive.cpp
index 241cf7851bac718df3868e8a3b13ee1c32170ed4..13e9a0241e4bd6edf077998d133c4e5056e412d1 100644
(file)
--- a/
src/GeomValidators/GeomValidators_Positive.cpp
+++ b/
src/GeomValidators/GeomValidators_Positive.cpp
@@
-1,4
+1,4
@@
-// Copyright (C) 2014-201
7
CEA/DEN, EDF R&D
+// Copyright (C) 2014-201
9
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
//
// 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
//
// 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
<mailto:webmaster.salome@opencascade.com>
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
#include "GeomValidators_Positive.h"
//
#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<std::string>::const_iterator anIt = theArguments.begin();
double aMinValue = 1.e-5;
if(theArguments.size() == 1) {
std::list<std::string>::const_iterator anIt = theArguments.begin();
- char *aErr;
double aValue = Config_PropManager::stringToDouble((*anIt).c_str());
if(aValue != 0) {
// very probably ok
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) {
return false;
}
if (aDouble->value() <= aMinValue) {
- theError = "
Double is not positive
.";
+ theError = "
Value is too small
.";
return false;
}
}
return false;
}
}