Skip to content

Commit 4297aec

Browse files
committed
FIX: fixed support when ArrayEditorWidget is contained in a widget with a .parent instance variable
(instead of the usual .parent() method)
1 parent 9573262 commit 4297aec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

larray_editor/arraywidget.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,7 @@ def plot(self):
11381138
try:
11391139
figure = self.data_adapter.plot(raw_data, axes_names, vlabels, hlabels)
11401140
widget = self
1141-
while widget is not None and not isinstance(widget, AbstractEditor):
1141+
while widget is not None and not isinstance(widget, AbstractEditor) and callable(widget.parent):
11421142
widget = widget.parent()
11431143
title = widget.current_array_name if isinstance(widget, MappingEditor) else None
11441144
show_figure(self, figure, title)

0 commit comments

Comments
 (0)