From: Jong-Jin, Kim Date: Wed, 4 Dec 2013 09:32:11 +0000 (+0900) Subject: pulseview: fixed probe shuffling problem. X-Git-Tag: pulseview-0.2.0~194 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=9a2bc5fcb8ad1e9c7885429609656316f9ad006b;p=pulseview.git pulseview: fixed probe shuffling problem. pulseview shuffles probes when a device has more than 16 probes. --- diff --git a/pv/view/view.cpp b/pv/view/view.cpp index cf93a371..f8b0fc45 100644 --- a/pv/view/view.cpp +++ b/pv/view/view.cpp @@ -216,7 +216,7 @@ vector< shared_ptr > 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; }