]> Devoid-pointer.net GitWeb - anyanka.git/commitdiff
Fix numeric limits build problem with VC12
authorMichal Malý <madcatxster@devoid-pointer.net>
Fri, 3 Apr 2015 12:14:48 +0000 (14:14 +0200)
committerMichal Malý <madcatxster@devoid-pointer.net>
Fri, 3 Apr 2015 12:14:48 +0000 (14:14 +0200)
gui/exportgraphtoimagedialog.cpp

index 50b30d7a888701e8242b7816271d8629121a829a..7311857214d5b0777a959ab977612ba44fe0daec 100644 (file)
@@ -23,6 +23,7 @@
 
 #include "exportgraphtoimagedialog.h"
 #include "ui_exportgraphtoimagedialog.h"
+#include <cfloat>
 #include <QtCore/QLocale>
 #include <QtWidgets/QFileDialog>
 #include <QDoubleValidator>
@@ -79,7 +80,7 @@ ExportGraphToImageDialog::ExportGraphToImageDialog(QList<QByteArray> 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);