add libreoffice examples for windows
This commit is contained in:
@@ -54,10 +54,10 @@ def check_image_stretch_and_center(modified_ppt, original_ppt):
|
||||
if the_image.image.blob == modified_image.image.blob:
|
||||
the_modified_image = modified_image
|
||||
|
||||
if (abs(the_modified_image.width - original_pres.slide_width) > Inches(0.1) or
|
||||
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)):
|
||||
if (abs(the_modified_image.width - original_pres.slide_width) > Inches(0.5) or
|
||||
abs(the_modified_image.height - original_pres.slide_height) > Inches(0.5) or
|
||||
abs(the_modified_image.left - (original_pres.slide_width - the_modified_image.width) / 2) > Inches(0.5) or
|
||||
abs(the_modified_image.top - (original_pres.slide_height - the_modified_image.height) / 2) > Inches(0.5)):
|
||||
return 0.
|
||||
|
||||
return 1.
|
||||
|
||||
Reference in New Issue
Block a user