From: Michal MalĂ˝ Date: Fri, 3 Apr 2015 12:14:48 +0000 (+0200) Subject: Fix numeric limits build problem with VC12 X-Git-Tag: 0.5c~15 X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=5fad27edf622b27531d145f693818e37400dfb44;p=anyanka.git Fix numeric limits build problem with VC12 --- 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);