From: Joel Holdsworth Date: Wed, 17 Oct 2012 19:40:44 +0000 (+0100) Subject: Fixed timeline scale X-Git-Tag: pulseview-0.1.0~243 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=397c9541a50d9fe88a9877d58e1d149df31eee04;p=pulseview.git Fixed timeline scale --- diff --git a/pv/view/ruler.cpp b/pv/view/ruler.cpp index f71240de..5dea1947 100644 --- a/pv/view/ruler.cpp +++ b/pv/view/ruler.cpp @@ -68,7 +68,7 @@ void Ruler::paintEvent(QPaintEvent *event) assert(prefix >= 0); assert(prefix < countof(SIPrefixes)); - const double multiplier = pow(0.1, prefix * 3 + FirstSIPrefixPower); + const double multiplier = pow(10.0, - prefix * 3 - FirstSIPrefixPower); const int text_height = p.boundingRect(0, 0, INT_MAX, INT_MAX, Qt::AlignLeft | Qt::AlignTop, "8").height();