Skip to content

Commit

Permalink
Re #10473. Fixing the builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
mantid-roman committed Jan 22, 2015
1 parent 79bfed5 commit 8f134d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Expand Up @@ -19,6 +19,10 @@ class QSettings;

namespace Mantid
{
namespace Kernel
{
class Property;
}
namespace API
{
class IAlgorithm;
Expand Down
4 changes: 3 additions & 1 deletion Code/Mantid/MantidQt/MantidWidgets/src/FitOptionsBrowser.cpp
Expand Up @@ -3,6 +3,7 @@
#include "MantidAPI/FuncMinimizerFactory.h"
#include "MantidAPI/IFuncMinimizer.h"
#include "MantidAPI/CostFunctionFactory.h"
#include "MantidAPI/IAlgorithm.h"

#include "qttreepropertybrowser.h"
#include "qtpropertymanager.h"
Expand Down Expand Up @@ -30,6 +31,7 @@
#include <QVBoxLayout>
#include <QMessageBox>
#include <QSettings>
#include <limits>

namespace MantidQt
{
Expand Down Expand Up @@ -190,7 +192,7 @@ QtProperty* FitOptionsBrowser::addDoubleProperty(const QString& name)
{
QtProperty* prop = m_doubleManager->addProperty(name);
m_doubleManager->setDecimals(prop,m_decimals);
m_doubleManager->setRange(prop,-DBL_MAX,DBL_MAX);
m_doubleManager->setRange(prop,-std::numeric_limits<double>::max(),std::numeric_limits<double>::max());
return prop;
}

Expand Down

0 comments on commit 8f134d0

Please sign in to comment.