fix: Paint the decoder row crashed

This commit is contained in:
dreamsourcelabTAI 2023-04-24 16:30:29 +08:00
parent c668b4cca1
commit 38cd8267c6

View File

@ -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 {