-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "use floor in cm_to_px instead of round"
This reverts commit 7e65d91.
- Loading branch information
Thiago Perrotta
committed
Jun 14, 2023
1 parent
d2f73a9
commit f00a6e1
Showing
2 changed files
with
3 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
|
||
|
||
def cm_to_px(cm): | ||
return cm * PPI / inch_in_cm | ||
return round(cm * PPI / inch_in_cm) | ||
|
||
|
||
def px_to_cm(px): | ||
|
f00a6e1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uh oh! Looks like an error! Details
HttpError: Invalid request.
Only 65535 characters are allowed; 2477746 were supplied.