From: Jens Steinhauser Date: Fri, 4 Sep 2015 16:31:48 +0000 (+0200) Subject: Ruler: Don't use a function that is only available in recent boost versions X-Git-Tag: pulseview-0.3.0~110 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=7c6cbdda4d7beaaf41c752826091b407a203df51;p=pulseview.git Ruler: Don't use a function that is only available in recent boost versions --- 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;