Skip to content

Commit

Permalink
fix bug in cli scale float
Browse files Browse the repository at this point in the history
  • Loading branch information
StardustDL committed Jun 26, 2020
1 parent 7aa3d45 commit f205f09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: 'x64'
Expand Down
2 changes: 1 addition & 1 deletion ImagingS/Cli/instruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def scale(self, argv: List[str]) -> None:
drawing = self.doc.drawings.children[argv[0]]
assert isinstance(drawing, GeometryDrawing)
_append_transform(drawing, ScaleTransform(
Point(int(argv[1]), int(argv[2])), (int(argv[3]), int(argv[3]))))
Point(int(argv[1]), int(argv[2])), (float(argv[3]), float(argv[3]))))

def clip(self, argv: List[str]) -> None:
drawing = self.doc.drawings.children[argv[0]]
Expand Down

0 comments on commit f205f09

Please sign in to comment.