From 7c6cbdda4d7beaaf41c752826091b407a203df51 Mon Sep 17 00:00:00 2001 From: Jens Steinhauser Date: Fri, 4 Sep 2015 18:31:48 +0200 Subject: [PATCH] Ruler: Don't use a function that is only available in recent boost versions --- pv/view/ruler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pv/view/ruler.cpp b/pv/view/ruler.cpp index ab08a320..393af577 100644 --- a/pv/view/ruler.cpp +++ b/pv/view/ruler.cpp @@ -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; -- 2.30.2