forked from amazingfate/loongoffice
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 (cherry picked from commit 6bfe8335c83fd9e5fd1b8c02a7d31650caa56279) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180186 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>