VisualNavbar: fix use of std::isnan (#195)

This commit is contained in:
Will Dietz 2017-12-09 16:00:29 -06:00 committed by xarkes
parent f36e9277fc
commit 44493c6327

View File

@ -3,6 +3,7 @@
#include "MainWindow.h"
#include "utils/TempConfig.h"
#include <cmath>
#include <QGraphicsView>
#include <QComboBox>
#include <QGraphicsScene>
@ -213,7 +214,7 @@ void VisualNavbar::drawCursor()
delete cursorGraphicsItem;
cursorGraphicsItem = nullptr;
}
if (isnan(cursor_x))
if (std::isnan(cursor_x))
{
return;
}