Commit 859f0f6b authored by AUTOMATIC1111's avatar AUTOMATIC1111 Committed by GitHub

Merge pull request #15415 from light-and-ray/fix_dcd4f880

fix dcd4f880
parents 23ef5027 4ccbae32
......@@ -16,7 +16,7 @@ def limit_size_by_one_dimention(w, h, limit):
if h > w and h > limit:
w = limit * w // h
h = limit
elif w > h and w > limit:
elif w > limit:
h = limit * h // w
w = limit
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment