]> sigrok.org Git - pulseview.git/commitdiff
Ruler: Don't use a function that is only available in recent boost versions
authorJens Steinhauser <redacted>
Fri, 4 Sep 2015 16:31:48 +0000 (18:31 +0200)
committerUwe Hermann <redacted>
Fri, 4 Sep 2015 16:42:35 +0000 (18:42 +0200)
pv/view/ruler.cpp

index ab08a32011cdef2aad64f62cb8e2d4aaa8fdb14b..393af57711c699732c84cfd05c1ee9933dff0f6d 100644 (file)
@@ -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;