mirror of
https://github.com/DreamSourceLab/DSView.git
synced 2025-01-23 13:42:55 +08:00
fix: Paint the decoder row crashed
This commit is contained in:
parent
c668b4cca1
commit
38cd8267c6
@ -256,6 +256,9 @@ void Viewport::paintSignals(QPainter &p, QColor fore, QColor back)
|
||||
|
||||
for(auto t : traces){
|
||||
if (t->enabled()){
|
||||
|
||||
if (t->signal_type() == LOGIC_SIGNAL)
|
||||
{
|
||||
LogicSignal *logic_signal = (LogicSignal*)t;
|
||||
|
||||
if (bFirst)
|
||||
@ -264,6 +267,10 @@ void Viewport::paintSignals(QPainter &p, QColor fore, QColor back)
|
||||
logic_signal->paint_mid_align_sample(p, 0, t->get_view_rect().right(), fore, back, end_align_sample);
|
||||
bFirst = false;
|
||||
}
|
||||
else{
|
||||
t->paint_mid(p, 0, t->get_view_rect().right(), fore, back);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user