summaryrefslogtreecommitdiff
path: root/graphics/asymptote/GUI/xasy2asy.py
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/asymptote/GUI/xasy2asy.py')
-rw-r--r--graphics/asymptote/GUI/xasy2asy.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/graphics/asymptote/GUI/xasy2asy.py b/graphics/asymptote/GUI/xasy2asy.py
index b0486d07ad..12bccb453c 100644
--- a/graphics/asymptote/GUI/xasy2asy.py
+++ b/graphics/asymptote/GUI/xasy2asy.py
@@ -873,12 +873,15 @@ class xasyItem(Qc.QObject):
n += 1
- if text == "Error\n":
- self.imageHandleQueue.put(("ERROR", fin.readline()))
- else:
- render()
+ if raw_text != "Error\n":
+ if text == "Error\n":
+ self.imageHandleQueue.put(("ERROR", fin.readline()))
+ else:
+ render()
- self.asy2psmap = asyTransform(xu.listize(fin.readline().rstrip(),float))
+ self.asy2psmap = asyTransform(xu.listize(fin.readline().rstrip(),float))
+ else:
+ self.asy2psmap = identity()
self.imageHandleQueue.put((None,))
self.asyfied = True