Commit 72d2a04e authored by Jan Möbius's avatar Jan Möbius

Fix pow as mac won't like it without cmath

parent bf60f009
......@@ -47,6 +47,7 @@
#include "QtLessAnnoyingDoubleSpinBox.hh"
#include <cmath>
QtLessAnnoyingDoubleSpinBox::QtLessAnnoyingDoubleSpinBox(QWidget* _qwidget ) : QDoubleSpinBox(_qwidget)
......@@ -72,7 +73,7 @@ double QtLessAnnoyingDoubleSpinBox::valueFromText(const QString &text) const
bool ok;
double value = copy.toDouble(&ok);
double factor = pow(10.0, decimals() );
double factor = std::pow(10.0, decimals() );
value = double( long(value * double(factor) + 0.5) ) / factor;
if ( !ok )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment