X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fruler.cpp;h=a442901c3e9c76645e44da9a5a9bd5dd18ca8df9;hp=c043aacf2b160d926a557915e2bafe95c397329a;hb=3f96c34aa5735b72a8c2a48d24ad38b1d9898933;hpb=6092d96f5d3c4c870b6e476237a105b5f037df70 diff --git a/pv/view/ruler.cpp b/pv/view/ruler.cpp index c043aac..a442901 100644 --- a/pv/view/ruler.cpp +++ b/pv/view/ruler.cpp @@ -79,7 +79,6 @@ void Ruler::paintEvent(QPaintEvent *event) } 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);