diff -Nru libpaper-1.1.27/debian/changelog libpaper-1.1.28/debian/changelog --- libpaper-1.1.27/debian/changelog 2019-06-23 19:27:03.000000000 +0000 +++ libpaper-1.1.28/debian/changelog 2019-06-25 22:04:32.000000000 +0000 @@ -1,3 +1,9 @@ +libpaper (1.1.28) unstable; urgency=medium + + * Completely fixed #927226. + + -- Giuseppe Sacco Wed, 26 Jun 2019 00:04:32 +0200 + libpaper (1.1.27) unstable; urgency=medium * Fixed a circular dependency in debian/rules that left libpaper1.config diff -Nru libpaper-1.1.27/debian/libpaper1.config libpaper-1.1.28/debian/libpaper1.config --- libpaper-1.1.27/debian/libpaper1.config 2019-06-23 19:27:03.000000000 +0000 +++ libpaper-1.1.28/debian/libpaper1.config 2019-06-25 22:04:32.000000000 +0000 @@ -10,9 +10,12 @@ # Try to find a matching paper size. The data must be embedded here # (done automatically by debian/rules) because the rest of the package # may not have been unpacked at this stage. - LC_ALL=C awk 'NF == 5 && int($2 + 0.5) == '"$w"' && int($4 + 0.5) == '"$h"' { + LC_ALL=C awk -v w="$w" -v h="$h" 'NF == 3 && int($2*72/2.54 + 0.5) == w && int($3*72/2.54 + 0.5) == h { print $1; - exit; + exit} + NF == 4 && $2 == w && $3 == h { + print $1; + exit }' <<__END_PAPERSPECS__ __BEGIN_PAPERSPECS__ __END_PAPERSPECS__