Previously, it required for some reason, that in order to be found, the new paper size must be better than the previous-best, in *both* dimensions. Thus, if the previous-best e.g. matched one dimention perfectly, but not the other, no better match could be found. Change-Id: Ia8cd4fd98f324c8450577859dbdd21831b66e2e3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180164 Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Tested-by: Jenkins