From 44493c6327f1e7adfe7f6781dbeb3c6a041ade59 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Sat, 9 Dec 2017 16:00:29 -0600 Subject: [PATCH] VisualNavbar: fix use of std::isnan (#195) --- src/widgets/VisualNavbar.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/widgets/VisualNavbar.cpp b/src/widgets/VisualNavbar.cpp index 9c21e7d9..8efea813 100644 --- a/src/widgets/VisualNavbar.cpp +++ b/src/widgets/VisualNavbar.cpp @@ -3,6 +3,7 @@ #include "MainWindow.h" #include "utils/TempConfig.h" +#include #include #include #include @@ -213,7 +214,7 @@ void VisualNavbar::drawCursor() delete cursorGraphicsItem; cursorGraphicsItem = nullptr; } - if (isnan(cursor_x)) + if (std::isnan(cursor_x)) { return; }