2
0
forked from Ivasoft/DSView

Fix out-of-order issue of multiple annotation rows

This commit is contained in:
DreamSourceLab
2020-05-10 18:44:15 +08:00
parent 2236cace83
commit dbc943d714
3 changed files with 13 additions and 6 deletions

View File

@@ -147,13 +147,14 @@ void DecoderStack::build_row()
}
// Add the decoder rows
int order = 0;
for (const GSList *l = decc->annotation_rows; l; l = l->next)
{
const srd_decoder_annotation_row *const ann_row =
(srd_decoder_annotation_row *)l->data;
assert(ann_row);
const Row row(decc, ann_row);
const Row row(decc, ann_row, order);
// Add a new empty row data object
_rows[row] = decode::RowData();
@@ -173,6 +174,8 @@ void DecoderStack::build_row()
ll; ll = ll->next)
_class_rows[make_pair(decc,
GPOINTER_TO_INT(ll->data))] = row;
order++;
}
}
}