Gui & Mod/Sketcher: use fabs() instead abs()
Warnings was like: src/Mod/Sketcher/Gui/DrawSketchHandler.cpp|350 col 28| warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] Also see: http://forum.freecadweb.org/viewtopic.php?t=10920 http://forum.freecadweb.org/viewtopic.php?f=10&t=5258
This commit is contained in:
committed by
wmayer
parent
3c0792d5d9
commit
9aca1e3b36
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user