From 1d87f987b119246e237d1ea5bbc2f7f0d6bc1a03 Mon Sep 17 00:00:00 2001 From: DivingDuck Date: Mon, 17 Jun 2024 15:34:03 +0200 Subject: [PATCH] Issue #1433. Correction of type error for G2/G3 arc moves --- printrun/gviz.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/printrun/gviz.py b/printrun/gviz.py index f17008b4..e700d652 100644 --- a/printrun/gviz.py +++ b/printrun/gviz.py @@ -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]