diff --git a/Orange/widgets/data/owpaintdata.py b/Orange/widgets/data/owpaintdata.py index 650e7e20148..4cbd9be5f57 100644 --- a/Orange/widgets/data/owpaintdata.py +++ b/Orange/widgets/data/owpaintdata.py @@ -1226,6 +1226,9 @@ def invalidate(self): self.commit() def commit(self): + if len(self.data) == 0: + self.send("Data", None) + return if self.hasAttr2: X, Y = self.data[:, :2], self.data[:, 2] attrs = (Orange.data.ContinuousVariable(self.attr1),