From 3fd9b2fafadd06b3e91891c5a86a89f5dca1b0cc Mon Sep 17 00:00:00 2001 From: Ales Erjavec Date: Fri, 3 Dec 2021 14:36:51 +0100 Subject: [PATCH] owpaintdata: Fix ClearTool's issued commands Do not use the plot's range to select what to delete. --- Orange/widgets/data/owpaintdata.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Orange/widgets/data/owpaintdata.py b/Orange/widgets/data/owpaintdata.py index 29a13b85bb6..99ab4d73415 100644 --- a/Orange/widgets/data/owpaintdata.py +++ b/Orange/widgets/data/owpaintdata.py @@ -563,8 +563,7 @@ class ClearTool(DataTool): def activate(self): self.editingStarted.emit() - self.issueCommand.emit(SelectRegion(self._plot.rect())) - self.issueCommand.emit(DeleteSelection()) + self.issueCommand.emit(DeleteIndices(slice(None, None, None))) self.editingFinished.emit()