Skip to content

Commit 8cd0d70

Browse files
committed
Fixed eps method runtime error
1 parent a90c075 commit 8cd0d70

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Packages/vcs/vcs/Canvas.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4913,6 +4913,7 @@ def _compute_width_height(self, width, height, units, ps=False):
49134913
H = tmp
49144914
return W, H
49154915

4916+
49164917
def postscript(self, file, mode='r', orientation=None, width=None, height=None,
49174918
units='inches', textAsPaths=True):
49184919
"""
@@ -5330,8 +5331,7 @@ def gs(self, filename='noname.gs', device='png256',
53305331
# #
53315332
##########################################################################
53325333
def eps(self, file, mode='r', orientation=None, width=None, height=None,
5333-
units='inches', left_margin=None, right_margin=None, top_margin=None,
5334-
bottom_margin=None, textAsPaths=True):
5334+
units='inches', textAsPaths=True):
53355335
"""
53365336
Function: Encapsulated PostScript
53375337
@@ -5369,11 +5369,8 @@ def eps(self, file, mode='r', orientation=None, width=None, height=None,
53695369
width,
53705370
height,
53715371
units,
5372-
left_margin,
5373-
right_margin,
5374-
top_margin,
5375-
bottom_margin,
53765372
textAsPaths)
5373+
53775374
os.popen("ps2epsi %s %s" % (tmpfile, file)).readlines()
53785375
os.remove(tmpfile)
53795376

0 commit comments

Comments
 (0)