projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RowItem: Derrive from std::enable_shared_from_this
[pulseview.git]
/
pv
/
view
/
logicsignal.cpp
diff --git
a/pv/view/logicsignal.cpp
b/pv/view/logicsignal.cpp
index 21bd5b95ec630a4b484c367ff8d9fd66ed3384ef..69c495e609fafd84b8113e274b3d270305240ff8 100644
(file)
--- a/
pv/view/logicsignal.cpp
+++ b/
pv/view/logicsignal.cpp
@@
-137,14
+137,17
@@
void LogicSignal::paint_mid(QPainter &p, int left, int right)
assert(_channel);
assert(_data);
assert(right >= left);
assert(_channel);
assert(_data);
assert(right >= left);
+ assert(_owner);
- assert(_view);
- const int y = _v_offset - _view->v_offset();
+ 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;