projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace View ownership of traces with RowItemOwner
[pulseview.git]
/
pv
/
view
/
analogsignal.cpp
diff --git
a/pv/view/analogsignal.cpp
b/pv/view/analogsignal.cpp
index bba84caeaff2eef7444d4e59e8f2ed3b279e2765..eaa25bccc947dac826d5bddf2eff50ec2fcdd325 100644
(file)
--- a/
pv/view/analogsignal.cpp
+++ b/
pv/view/analogsignal.cpp
@@
-89,13
+89,17
@@
void AnalogSignal::paint_mid(QPainter &p, int left, int right)
{
assert(_data);
assert(right >= left);
{
assert(_data);
assert(right >= left);
+ assert(_owner);
const int y = get_y();
const int y = get_y();
- const double scale = _view->scale();
+ const View *const view = _owner->view();
+ assert(view);
+
+ const double scale = view->scale();
assert(scale > 0);
assert(scale > 0);
- const double offset =
_
view->offset();
+ const double offset = view->offset();
if (!_channel->enabled())
return;
if (!_channel->enabled())
return;