]> sigrok.org Git - pulseview.git/commitdiff
pulseview: fixed probe shuffling problem.
authorJong-Jin, Kim <redacted>
Wed, 4 Dec 2013 09:32:11 +0000 (18:32 +0900)
committerBert Vermeulen <redacted>
Wed, 4 Dec 2013 10:20:24 +0000 (11:20 +0100)
pulseview shuffles probes when a device has more than 16 probes.

pv/view/view.cpp

index cf93a371c4d7fbe8dce55163f3caf699c034a645..f8b0fc4537ef71b83d0be751fbd6ddee564bd198 100644 (file)
@@ -216,7 +216,7 @@ vector< shared_ptr<Trace> > View::get_traces() const
        i = copy(sigs.begin(), sigs.end(), i);
        i = copy(decode_sigs.begin(), decode_sigs.end(), i);
 
-       sort(traces.begin(), traces.end(), compare_trace_v_offsets);
+       stable_sort(traces.begin(), traces.end(), compare_trace_v_offsets);
        return traces;
 }