mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-21 04:16: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 "MainWindow.h"
|
||||||
#include "utils/TempConfig.h"
|
#include "utils/TempConfig.h"
|
||||||
|
|
||||||
|
#include <cmath>
|
||||||
#include <QGraphicsView>
|
#include <QGraphicsView>
|
||||||
#include <QComboBox>
|
#include <QComboBox>
|
||||||
#include <QGraphicsScene>
|
#include <QGraphicsScene>
|
||||||
@ -213,7 +214,7 @@ void VisualNavbar::drawCursor()
|
|||||||
delete cursorGraphicsItem;
|
delete cursorGraphicsItem;
|
||||||
cursorGraphicsItem = nullptr;
|
cursorGraphicsItem = nullptr;
|
||||||
}
|
}
|
||||||
if (isnan(cursor_x))
|
if (std::isnan(cursor_x))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user