]> sigrok.org Git - pulseview.git/commitdiff
Fixed initialization of Annotation::_format field
authorJoel Holdsworth <redacted>
Tue, 3 Dec 2013 13:15:54 +0000 (13:15 +0000)
committerJoel Holdsworth <redacted>
Tue, 3 Dec 2013 13:15:54 +0000 (13:15 +0000)
pv/view/decode/annotation.cpp

index 0005847655fcfbc77d1451c2cc0f7d232f54e7c4..30efb5179dbaea65ee06d8a5bc2de5dadff8d4fe 100644 (file)
@@ -60,6 +60,8 @@ Annotation::Annotation(const srd_proto_data *const pdata) :
                (const srd_proto_data_annotation*)pdata->data;
        assert(pda);
 
+       _format = pda->ann_format;
+
        const char *const *annotations = (char**)pda->ann_text;
        while(*annotations) {
                _annotations.push_back(QString(*annotations));