Ignore change on last edge
authorMiodrag Milanovic <mmicko@gmail.com>
Fri, 22 Apr 2022 13:24:02 +0000 (15:24 +0200)
committerMiodrag Milanovic <mmicko@gmail.com>
Fri, 22 Apr 2022 13:24:02 +0000 (15:24 +0200)
kernel/fstdata.cc

index c99bc61c3ceb46583d726345b2a309d3534f39b8..2bec58bcf555d195964fb3b868373df0b894a08c 100644 (file)
@@ -201,10 +201,11 @@ void FstData::reconstructAllAtTimes(std::vector<fstHandle> &signal, uint64_t sta
        fstReaderSetUnlimitedTimeRange(ctx);
        fstReaderSetFacProcessMaskAll(ctx);
        fstReaderIterBlocks2(ctx, reconstruct_clb_attimes, reconstruct_clb_varlen_attimes, this, nullptr);
-       past_data = last_data;
-       callback(last_time);
-       if (last_time!=end_time)
-               callback(end_time);
+       if (last_time!=end_time) {
+               past_data = last_data;
+               callback(last_time);
+       }
+       callback(end_time);
 }
 
 std::string FstData::valueOf(fstHandle signal)