diff --git a/src/Gui/NavigationStyle.cpp b/src/Gui/NavigationStyle.cpp index a6acebb05..66c65ddec 100644 --- a/src/Gui/NavigationStyle.cpp +++ b/src/Gui/NavigationStyle.cpp @@ -795,7 +795,7 @@ void NavigationStyle::doZoom(SoCamera* camera, float logfactor, const SbVec2f& p { // something is asking for big zoom factor. This func is made for interactive zooming, // where the changes are per mouse move and thus are small. - if (abs(logfactor)>4.0) + if (fabs(logfactor)>4.0) return; SbBool zoomAtCur = this->zoomAtCursor; if (zoomAtCur) { diff --git a/src/Mod/Sketcher/App/Sketch.cpp b/src/Mod/Sketcher/App/Sketch.cpp index 02dff93fe..27b306442 100644 --- a/src/Mod/Sketcher/App/Sketch.cpp +++ b/src/Mod/Sketcher/App/Sketch.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (c) Jürgen Riegel (juergen.riegel@web.de) 2010 * + * Copyright (c) J�rgen Riegel (juergen.riegel@web.de) 2010 * * * * This file is part of the FreeCAD CAx development system. * * * @@ -1354,7 +1354,7 @@ int Sketch::addAngleAtPointConstraint( if (angleErr < -M_PI) angleErr += M_PI*2; //the autodetector - if(abs(angleErr) > M_PI/2 ) + if(fabs(angleErr) > M_PI/2 ) angleDesire += M_PI; *angle = angleDesire; @@ -1757,7 +1757,7 @@ int Sketch::addSnellsLawConstraint(int geoIdRay1, PointPos posRay1, double n2divn1=*value; - if ( abs(n2divn1) >= 1.0 ){ + if ( fabs(n2divn1) >= 1.0 ){ *n2 = n2divn1; *n1 = 1.0; } else {