--- a/controls/DebugVariablePanel/DebugVariableGraphicViewer.py Tue Nov 01 14:21:16 2022 +0800
+++ b/controls/DebugVariablePanel/DebugVariableGraphicViewer.py Tue Nov 01 14:23:47 2022 +0800
@@ -480,7 +480,7 @@
@param item: Item from which data to export, all items if None
- if item and item.GetData():
+ if item is not None and item.GetData(): self.ParentWindow.CopyDataToClipboard(
[(item, [entry for entry in item.GetData()])
@@ -582,7 +582,7 @@
# Search for point that tick is the nearest from mouse X position
# and set cursor tick to the tick of this point
- if data and len(data) > 0:
+ if data is not None and len(data) > 0: cursor_tick = data[numpy.argmin(
numpy.abs(data[:, 0] - event.xdata)), 0]