projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Replaced duplicated code with Trace::get_y
[pulseview.git]
/
pv
/
view
/
analogsignal.cpp
diff --git
a/pv/view/analogsignal.cpp
b/pv/view/analogsignal.cpp
index 38468942a79ad594d7854cd43029aea08e75a3a7..bba84caeaff2eef7444d4e59e8f2ed3b279e2765 100644
(file)
--- a/
pv/view/analogsignal.cpp
+++ b/
pv/view/analogsignal.cpp
@@
-90,8
+90,7
@@
void AnalogSignal::paint_mid(QPainter &p, int left, int right)
assert(_data);
assert(right >= left);
- assert(_view);
- const int y = _v_offset - _view->v_offset();
+ const int y = get_y();
const double scale = _view->scale();
assert(scale > 0);