X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fruler.cpp;h=a442901c3e9c76645e44da9a5a9bd5dd18ca8df9;hb=3f96c34aa5735b72a8c2a48d24ad38b1d9898933;hp=c043aacf2b160d926a557915e2bafe95c397329a;hpb=6092d96f5d3c4c870b6e476237a105b5f037df70;p=pulseview.git diff --git a/pv/view/ruler.cpp b/pv/view/ruler.cpp index c043aacf..a442901c 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);