From 5bcdc7872578cce1dce01d76ce0338f71a70088e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Sat, 7 Dec 2013 14:50:37 +0100 Subject: [PATCH] Fixed Panel View bugs --- kcc/comic2ebook.py | 23 +++++++++++++---------- kcc/image.py | 12 +++++++----- 2 files changed, 20 insertions(+), 15 deletions(-) diff --git a/kcc/comic2ebook.py b/kcc/comic2ebook.py index 1ccd0f9..eff8ac4 100755 --- a/kcc/comic2ebook.py +++ b/kcc/comic2ebook.py @@ -105,9 +105,9 @@ def buildHTML(path, imgfile): elif noHorizontalPV and not noVerticalPV: if rotatedPage: if options.righttoleft: - order = [2, 1] - else: order = [1, 2] + else: + order = [2, 1] else: order = [1, 2] boxes = ["BoxT", "BoxB"] @@ -166,11 +166,11 @@ def buildHTML(path, imgfile): "BoxTR": "right:" + xr + ";top:" + yu + ";", "BoxBL": "left:" + xl + ";bottom:" + yd + ";", "BoxBR": "right:" + xr + ";bottom:" + yd + ";", - "BoxT": "left:" + xl + ";top:" + yu + ";", - "BoxB": "left:" + xl + ";bottom:" + yd + ";", - "BoxL": "left:" + xl + ";top:" + yu + ";", - "BoxR": "right:" + xr + ";top:" + yu + ";", - "BoxC": "left:" + xl + ";top:" + yu + ";" + "BoxT": "left:-25%;top:" + yu + ";", + "BoxB": "left:-25%;bottom:" + yd + ";", + "BoxL": "left:" + xl + ";top:-25%;", + "BoxR": "right:" + xr + ";top:-25%;", + "BoxC": "left:-25%;top:-25%;" } for box in boxes: f.writelines(["