Commit e4b9924c authored by Committed by Sebastian Ramacher
Fix BESTFIT to work well when pages-per-row > 1.
There are two causes of the problem: - page_ratio should be defined differently This is because the usefull page ratio is max_height/total_width or max_width/total_height. This then changes accordingly if pages_per_row != 1, otherwise, if the pages are of the same size, the page ratios will not change, which screws up the resizing. - Sometimes we need to do height or width division diferently. This is because not always total_height or total_width is meaningful in BESTFIT condition. This commit also should fix the bug #0000226. Signed-off-by: Ignas Anikevicius (gns_ank) <firstname.lastname@example.org> Signed-off-by: Sebastian Ramacher <email@example.com>
Showing with 4 additions and 4 deletions