#include <assert.h>
#include <math.h>
+#include <limits.h>
#include <QMouseEvent>
#include <QPainter>
this, SLOT(hover_point_changed()));
}
-void Ruler::paintEvent(QPaintEvent *event)
+void Ruler::paintEvent(QPaintEvent*)
{
QPainter p(this);
p.setRenderHint(QPainter::Antialiasing);
} while (tick_period < min_period && unit < countof(ScaleUnits));
const unsigned int prefix = (order - FirstSIPrefixPower) / 3;
- assert(prefix >= 0);
assert(prefix < countof(SIPrefixes));
const double multiplier = pow(10.0, - prefix * 3 - FirstSIPrefixPower);