From: Soeren Apel Date: Mon, 24 Aug 2015 19:25:04 +0000 (+0200) Subject: Ruler scale calculation optimization X-Git-Tag: pulseview-0.3.0~131 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=8a463dbc1da0a229a726c1d0f278d361d871cfe1;p=pulseview.git Ruler scale calculation optimization --- diff --git a/pv/view/view.cpp b/pv/view/view.cpp index d32a23da..12c277d5 100644 --- a/pv/view/view.cpp +++ b/pv/view/view.cpp @@ -494,7 +494,7 @@ void View::set_zoom(double scale, int offset) void View::calculate_tick_spacing() { const double SpacingIncrement = 10.0f; - const double MinValueSpacing = 25.0f; + const double MinValueSpacing = 40.0f; // Figure out the highest numeric value visible on a label const QSize areaSize = viewport_->size();