Append new segments to the end, not the beginning of the list
authorSoeren Apel <soeren@apelpie.net>
Fri, 27 Oct 2017 16:44:51 +0000 (18:44 +0200)
committerSoeren Apel <soeren@apelpie.net>
Fri, 27 Oct 2017 16:44:51 +0000 (18:44 +0200)
pv/data/analog.cpp
pv/data/logic.cpp

index c8bafc0fab292cf0982adc8b502739232ba11a56..ed15867c2734d071ab843737284fc41f63aab208 100644 (file)
@@ -37,7 +37,7 @@ Analog::Analog() :
 
 void Analog::push_segment(shared_ptr<AnalogSegment> &segment)
 {
-       segments_.push_front(segment);
+       segments_.push_back(segment);
 }
 
 const deque< shared_ptr<AnalogSegment> >& Analog::analog_segments() const
index 084e8efd7f231fd920a0da8dfad18cfd9e4ac66e..3e194d54eecec4c54abaaeba1d0b7e029c755265 100644 (file)
@@ -44,7 +44,7 @@ unsigned int Logic::num_channels() const
 
 void Logic::push_segment(shared_ptr<LogicSegment> &segment)
 {
-       segments_.push_front(segment);
+       segments_.push_back(segment);
 }
 
 const deque< shared_ptr<LogicSegment> >& Logic::logic_segments() const