Fix some errors found in impress and thunderbird examples

This commit is contained in:
Timothyxxx
2024-01-29 13:23:06 +08:00
parent cc21c3a6b1
commit 37e09a994e
3 changed files with 4 additions and 4 deletions

View File

@@ -57,9 +57,9 @@ def check_image_stretch_and_center(modified_ppt, original_ppt):
abs(the_modified_image.height - original_pres.slide_height) > Inches(0.1) or
abs(the_modified_image.left - (original_pres.slide_width - the_modified_image.width) / 2) > Inches(0.1) or
abs(the_modified_image.top - (original_pres.slide_height - the_modified_image.height) / 2) > Inches(0.1)):
return False
return 0.
return True
return 1.
def is_red_color(color):