We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 225ec0d commit 2f2caf0Copy full SHA for 2f2caf0
Orange/widgets/widget.py
@@ -342,10 +342,11 @@ def save_graph(self):
342
saveplot.save_plot(graph_obj, self.graph_writers)
343
344
def copy_to_clipboard(self):
345
- graph_obj = getdeepattr(self, self.graph_name, None)
346
- if graph_obj is None:
347
- return
348
- ClipboardFormat.write_image(None, graph_obj)
+ if self.graph_name:
+ graph_obj = getdeepattr(self, self.graph_name, None)
+ if graph_obj is None:
+ return
349
+ ClipboardFormat.write_image(None, graph_obj)
350
351
def __restoreWidgetGeometry(self):
352
0 commit comments