]> sigrok.org Git - pulseview.git/commitdiff
Header: Fixed mouse over coordinates
authorJoel Holdsworth <redacted>
Sun, 9 Nov 2014 10:35:43 +0000 (10:35 +0000)
committerJoel Holdsworth <redacted>
Wed, 19 Nov 2014 10:23:01 +0000 (10:23 +0000)
pv/view/header.cpp

index 2e497761b18a761ca6dd4785252e7bfc96e0030a..802f897a607be89be0d1e6dfd684d65f61e75f57 100644 (file)
@@ -82,7 +82,7 @@ QSize Header::sizeHint() const
 
 shared_ptr<Trace> Header::get_mouse_over_trace(const QPoint &pt)
 {
-       const int w = width();
+       const int w = width() - BaselineOffset;
        const vector< shared_ptr<Trace> > traces(_view.get_traces());
 
        for (const shared_ptr<Trace> t : traces)