From: Joel Holdsworth Date: Tue, 3 Dec 2013 13:15:54 +0000 (+0000) Subject: Fixed initialization of Annotation::_format field X-Git-Tag: pulseview-0.2.0~195 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=3248fcde2deac2fc3fcddf0f3a5bb4695986eeb9;p=pulseview.git Fixed initialization of Annotation::_format field --- diff --git a/pv/view/decode/annotation.cpp b/pv/view/decode/annotation.cpp index 00058476..30efb517 100644 --- a/pv/view/decode/annotation.cpp +++ b/pv/view/decode/annotation.cpp @@ -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));