Skip to content

Commit

Permalink
Issue #1433. Correction of type error for G2/G3 arc moves (#1434)
Browse files Browse the repository at this point in the history
Fixes #1433
  • Loading branch information
DivingDuck authored Jun 17, 2024
1 parent b382917 commit 17729de
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions printrun/gviz.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,12 +332,12 @@ def _line_scaler(self, x):
int(self.scale[1] * x[3]),)

def _arc_scaler(self, x):
return (self.scale[0] * x[0],
self.scale[1] * x[1],
self.scale[0] * x[2],
self.scale[1] * x[3],
self.scale[0] * x[4],
self.scale[1] * x[5],)
return (int(self.scale[0] * x[0]),
int(self.scale[1] * x[1]),
int(self.scale[0] * x[2]),
int(self.scale[1] * x[3]),
int(self.scale[0] * x[4]),
int(self.scale[1] * x[5]),)

def _drawlines(self, dc, lines, pens):
scaled_lines = [self._line_scaler(l) for l in lines]
Expand Down

0 comments on commit 17729de

Please sign in to comment.