IDE: Fixed use of RingBuffers in variable traces graphs when switching to 2D trend graph. svghmi
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Thu, 29 Jul 2021 08:25:26 +0200
branchsvghmi
changeset 3292 ef04cedee08b
parent 3291 7d0e7e4d88cd
child 3293 d2b0c768755d
IDE: Fixed use of RingBuffers in variable traces graphs when switching to 2D trend graph.
controls/DebugVariablePanel/DebugVariableItem.py
--- a/controls/DebugVariablePanel/DebugVariableItem.py	Mon Jul 26 10:20:39 2021 +0200
+++ b/controls/DebugVariablePanel/DebugVariableItem.py	Thu Jul 29 08:25:26 2021 +0200
@@ -152,7 +152,7 @@
                      else 0)
         end_idx = (self.GetNearestData(end_tick, 1)
                    if end_tick is not None
-                   else len(self.Data))
+                   else self.Data.count)
 
         # Return data between indexes
         return self.Data.view[start_idx:end_idx]