fix: drag the decoder pannel to the left, it crashed

This commit is contained in:
dreamsourcelabTAI
2024-01-08 17:33:45 +08:00
parent ebe900cbb7
commit 7c9736cfd9
+1 -1
View File
@@ -171,7 +171,7 @@ void LogicSignal::paint_mid_align(QPainter &p, int left, int right, QColor fore,
x = (*i).first;
wave_lines.push_back(QLine(preX, preY, x, preY));
}
else {
else if (_cur_pulses.size() > 0) {
std::vector<std::pair<bool, bool>>::const_iterator i = _cur_pulses.begin();
while (i != _cur_pulses.end() - 1) {
if ((*i).first) {