From: Soeren Apel Date: Fri, 27 Oct 2017 16:44:51 +0000 (+0200) Subject: Append new segments to the end, not the beginning of the list X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=bc93f1ef2f89b6309b23b4984c237dcc458f1446;p=pulseview.git Append new segments to the end, not the beginning of the list --- diff --git a/pv/data/analog.cpp b/pv/data/analog.cpp index c8bafc0f..ed15867c 100644 --- a/pv/data/analog.cpp +++ b/pv/data/analog.cpp @@ -37,7 +37,7 @@ Analog::Analog() : void Analog::push_segment(shared_ptr &segment) { - segments_.push_front(segment); + segments_.push_back(segment); } const deque< shared_ptr >& Analog::analog_segments() const diff --git a/pv/data/logic.cpp b/pv/data/logic.cpp index 084e8efd..3e194d54 100644 --- a/pv/data/logic.cpp +++ b/pv/data/logic.cpp @@ -44,7 +44,7 @@ unsigned int Logic::num_channels() const void Logic::push_segment(shared_ptr &segment) { - segments_.push_front(segment); + segments_.push_back(segment); } const deque< shared_ptr >& Logic::logic_segments() const