From 5fad27edf622b27531d145f693818e37400dfb44 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Fri, 3 Apr 2015 14:14:48 +0200 Subject: [PATCH] Fix numeric limits build problem with VC12 --- gui/exportgraphtoimagedialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/exportgraphtoimagedialog.cpp b/gui/exportgraphtoimagedialog.cpp index 50b30d7..7311857 100644 --- a/gui/exportgraphtoimagedialog.cpp +++ b/gui/exportgraphtoimagedialog.cpp @@ -23,6 +23,7 @@ #include "exportgraphtoimagedialog.h" #include "ui_exportgraphtoimagedialog.h" +#include #include #include #include @@ -79,7 +80,7 @@ ExportGraphToImageDialog::ExportGraphToImageDialog(QList formats, Pa m_dblValidator = new QDoubleValidator(this); if (m_dblValidator != nullptr) { m_dblValidator->setLocale(m_locale); - m_dblValidator->setRange(-__DBL_MAX__, __DBL_MAX__); + m_dblValidator->setRange(-DBL_MAX, DBL_MAX); m_dblValidator->setDecimals(1000); ui->qle_fromX->setValidator(m_dblValidator); -- 2.43.5