]> sigrok.org Git - pulseview.git/blobdiff - pv/view/ruler.cpp
Minor whitespace cosmetics.
[pulseview.git] / pv / view / ruler.cpp
index ab08a32011cdef2aad64f62cb8e2d4aaa8fdb14b..601e73b163a6ed84683ca8b3bcf9526ab3a8e048 100644 (file)
@@ -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;