From d905f6dfaaa162b385682910d0fdd6d4d9caca5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Mon, 1 Jul 2013 23:14:17 +0200 Subject: [PATCH] Bug in double page mode fixed. --- YACReader/render.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/YACReader/render.cpp b/YACReader/render.cpp index b107ef60..a977fae0 100644 --- a/YACReader/render.cpp +++ b/YACReader/render.cpp @@ -408,9 +408,9 @@ void DoublePageRender::run() //altura normalizada if(img.height()!=y) - x = (width1 = ((img.width() * y) / img2.height())) + (width2 = img2.width()); + x = (width1 = ((img.width() * y) / img.height())) + (width2 = img2.width()); else - x = (width1 = img.width()) + (width2 = ((img2.width() * y) / img.height())); + x = (width1 = img.width()) + (width2 = ((img2.width() * y) / img2.height())); QImage auxImg(x,y,QImage::Format_RGB32);