From 47b56bab90f062c5f305de229264b5c70d3f98eb Mon Sep 17 00:00:00 2001 From: Mauricio Baeza Date: Wed, 31 Jan 2018 01:42:51 -0600 Subject: [PATCH] =?UTF-8?q?Fix=20-=20Al=20generar=20PDF=20con=20una=20sola?= =?UTF-8?q?=20l=C3=ADnea?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/app/controllers/util.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/app/controllers/util.py b/source/app/controllers/util.py index 02e9979..c8421e1 100644 --- a/source/app/controllers/util.py +++ b/source/app/controllers/util.py @@ -811,6 +811,9 @@ class LIBO(object): col5.append((float(valor_unitario),)) col6.append((float(importe),)) + if not count: + return + col = cell_1.getCellAddress().Column target1 = self._sheet.getCellRangeByPosition(col, row+1, col, row+count) col = cell_2.getCellAddress().Column