Allow exactly 1x20 aspect in photos.

This commit is contained in:
John Preston 2021-11-02 09:59:06 +04:00
parent 7e9302fce8
commit e4ac810773
1 changed files with 2 additions and 2 deletions

View File

@ -205,8 +205,8 @@ int MaxAlbumItems() {
bool ValidateThumbDimensions(int width, int height) {
return (width > 0)
&& (height > 0)
&& (width < 20 * height)
&& (height < 20 * width);
&& (width <= 20 * height)
&& (height <= 20 * width);
}
std::vector<PreparedGroup> DivideByGroups(