]> sigrok.org Git - pulseview.git/blobdiff - pv/view/timemarker.hpp
DecodeTrace: Don't dereference iterator pointing at end of container.
[pulseview.git] / pv / view / timemarker.hpp
index 371b6e4a54ce607edbdfd7dc3ead53c55e9ae447..f16fea03f4c0d8d9e93ca9ce77ac5dd2f5cfd7b2 100644 (file)
@@ -88,7 +88,7 @@ public:
         * @param rect the rectangle of the viewport area.
         * @return Returns the rectangle of the hit-box.
         */
-       QRectF hit_box_rect(const QRectF &rect) const;
+       QRectF hit_box_rect(const ViewItemPaintParams &pp) const;
 
        /**
         * Gets the text to show in the marker.
@@ -107,7 +107,7 @@ public:
         * Paints the foreground layer of the item with a QPainter
         * @param p the QPainter to paint into.
         * @param pp the painting parameters object to paint with.
-        **/
+        */
        void paint_fore(QPainter &p, const ViewItemPaintParams &pp);
 
        virtual pv::widgets::Popup* create_popup(QWidget *parent);