Skip to content

Commit

Permalink
Added warning message to pagerotate if not rotating due to page orien…
Browse files Browse the repository at this point in the history
…tation target.
  • Loading branch information
gatesphere committed Mar 6, 2024
1 parent 5e192b8 commit c0f98c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vpype_cli/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,7 @@ def pagerotate(document: vp.Document, clockwise: bool, orientation: str):
# check orientation constraint, and do nothing if target orientation
# won't match desired result
if (orientation == "portrait" and h > w) or (orientation == "landscape" and w > h):
logging.warning("pagerotate: page already in target orientation, page not rotated.")
return document

Check warning on line 693 in vpype_cli/operations.py

View check run for this annotation

Codecov / codecov/patch

vpype_cli/operations.py#L692-L693

Added lines #L692 - L693 were not covered by tests

if clockwise:
Expand Down

0 comments on commit c0f98c0

Please sign in to comment.