summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/asymptote/GUI/Window1.py
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/asymptote/GUI/Window1.py')
-rwxr-xr-xMaster/texmf-dist/asymptote/GUI/Window1.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Master/texmf-dist/asymptote/GUI/Window1.py b/Master/texmf-dist/asymptote/GUI/Window1.py
index bae034a15c1..1e65b23597f 100755
--- a/Master/texmf-dist/asymptote/GUI/Window1.py
+++ b/Master/texmf-dist/asymptote/GUI/Window1.py
@@ -2460,9 +2460,10 @@ class MainWindow1(Qw.QMainWindow):
except:
return
- if self.fileItems[maj] is not None:
- self.contextWindowObject = self.fileItems[maj] #For arrowifying
- self.contextWindow = ContextWindow.AnotherWindow(self.fileItems[maj],self)
+ item=self.fileItems[maj]
+ if item is not None and isinstance(item, x2a.xasyDrawnItem):
+ self.contextWindowObject = item #For arrowifying
+ self.contextWindow = ContextWindow.AnotherWindow(item,self)
self.contextWindow.setMinimumWidth(420)
#self.setCentralWidget(self.contextWindow) #I don't know what this does tbh.
self.contextWindow.show()