X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdata%2Fdecode%2Fannotation.cpp;h=573fefaffa8c0829bc1440e362203d15dc5065b5;hp=b0517ae69ef9c6a13eefc4bad41efeea08b7d9a0;hb=3f53457656c72dc870f603677843613b708b4ea1;hpb=819f4c25391a9c74d3d2f528d462142d5c4aad4d diff --git a/pv/data/decode/annotation.cpp b/pv/data/decode/annotation.cpp index b0517ae6..573fefaf 100644 --- a/pv/data/decode/annotation.cpp +++ b/pv/data/decode/annotation.cpp @@ -40,6 +40,7 @@ Annotation::Annotation(const srd_proto_data *const pdata) : assert(pda); _format = pda->ann_format; + _row = 0; const char *const *annotations = (char**)pda->ann_text; while(*annotations) { @@ -63,11 +64,21 @@ int Annotation::format() const return _format; } +int Annotation::row() const +{ + return _row; +} + const std::vector& Annotation::annotations() const { return _annotations; } +void Annotation::set_row(int row) +{ + _row = row; +} + } // namespace decode } // namespace data } // namespace pv