X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fruler.cpp;h=601e73b163a6ed84683ca8b3bcf9526ab3a8e048;hp=ab08a32011cdef2aad64f62cb8e2d4aaa8fdb14b;hb=48257a69ffad409c9893605d99cd6e15161dff4f;hpb=2d14193769fead2c7882c63246b12b0f80df23d5 diff --git a/pv/view/ruler.cpp b/pv/view/ruler.cpp index ab08a320..601e73b1 100644 --- a/pv/view/ruler.cpp +++ b/pv/view/ruler.cpp @@ -35,10 +35,10 @@ using std::vector; namespace pv { namespace view { -const float Ruler::RulerHeight = 2.5f; // x Text Height +const float Ruler::RulerHeight = 2.5f; // x Text Height const int Ruler::MinorTickSubdivision = 4; -const float Ruler::HoverArrowSize = 0.5f; // x Text Height +const float Ruler::HoverArrowSize = 0.5f; // x Text Height Ruler::Ruler(View &parent) : MarginWidget(parent) @@ -138,12 +138,12 @@ void Ruler::paintEvent(QPaintEvent*) this->view_.tick_precision()); }; - tick_position_cache_.emplace(calculate_tick_positions( + tick_position_cache_ = calculate_tick_positions( view_.tick_period(), view_.offset(), view_.scale(), width(), - ffunc)); + ffunc); } const int ValueMargin = 3;