From 9322b3a4e1e7994ff9c8bd21098b868999fd7b0f Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Sun, 29 Nov 2020 11:29:58 -0500 Subject: [PATCH] Use the C++ isnan function --- pcbnew/import_gfx/dxf_import_plugin.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pcbnew/import_gfx/dxf_import_plugin.cpp b/pcbnew/import_gfx/dxf_import_plugin.cpp index b0ee0b6c31..65bcf64a4d 100644 --- a/pcbnew/import_gfx/dxf_import_plugin.cpp +++ b/pcbnew/import_gfx/dxf_import_plugin.cpp @@ -35,7 +35,7 @@ #include #include -#include +#include // isnan #include #include "common.h" @@ -564,9 +564,9 @@ void DXF_IMPORT_PLUGIN::addText( const DL_TextData& aData ) { DXF_ARBITRARY_AXIS arbAxis = getArbitraryAxis( getExtrusion() ); VECTOR3D refPointCoords = ocsToWcs( arbAxis, VECTOR3D( aData.ipx, aData.ipy, aData.ipz ) ); - VECTOR3D secPointCoords = ocsToWcs( arbAxis, VECTOR3D( isnan( aData.apx ) ? 0 : aData.apx, - isnan( aData.apy ) ? 0 : aData.apy, - isnan( aData.apz ) ? 0 : aData.apz ) ); + VECTOR3D secPointCoords = ocsToWcs( arbAxis, VECTOR3D( std::isnan( aData.apx ) ? 0 : aData.apx, + std::isnan( aData.apy ) ? 0 : aData.apy, + std::isnan( aData.apz ) ? 0 : aData.apz ) ); VECTOR2D refPoint( mapX( refPointCoords.x ), mapY( refPointCoords.y ) ); VECTOR2D secPoint( mapX( secPointCoords.x ), mapY( secPointCoords.y ) );