mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-20 20:06:12 +00:00
VisualNavbar: fix use of std::isnan (#195)
This commit is contained in:
parent
f36e9277fc
commit
44493c6327
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user