X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fdecodetrace.cpp;h=e582d1a8e2042d1ba4d4f2dd1046940bd8067990;hp=2d641827f13bbd8416f09baa62f74c18cdce5a47;hb=db62bbfda512aeddca5b9d7b5960e9cf24b8859c;hpb=6ad174e055b76e5dd68014382c80f7137e8320b9 diff --git a/pv/view/decodetrace.cpp b/pv/view/decodetrace.cpp index 2d64182..e582d1a 100644 --- a/pv/view/decodetrace.cpp +++ b/pv/view/decodetrace.cpp @@ -135,12 +135,10 @@ void DecodeTrace::paint_mid(QPainter &p, int left, int right) const int y = get_y(); assert(_decoder_stack); - vector< shared_ptr > annotations(_decoder_stack->annotations()); - BOOST_FOREACH(shared_ptr a, annotations) { - assert(a); - a->paint(p, get_text_colour(), h, left, right, + vector annotations(_decoder_stack->annotations()); + BOOST_FOREACH(const Annotation &a, annotations) + a.paint(p, get_text_colour(), h, left, right, samples_per_pixel, pixels_offset, y); - } draw_unresolved_period(p, h, left, right, samples_per_pixel, pixels_offset);