Cleaning up compile warnings, mainly in Sketcher

fabs() instead of std::abs(), add cmath include
This commit is contained in:
Ian Rees
2015-06-04 18:12:39 +02:00
committed by wmayer
parent 9e73137623
commit 33e0441c39
5 changed files with 23 additions and 12 deletions

View File

@@ -288,7 +288,7 @@ bool Part2DObject::seekTrimPoints(const std::vector<Geometry *> &geomlist,
if (periodic) {
// in case both points coincide, cancel the selection of one of both
if (abs(param2-param1-period) < 1e-10) {
if (fabs(param2-param1-period) < 1e-10) {
if (param2 - pickedParam >= pickedParam - param1)
GeoId2 = -1;
else