From 35eae0ab99fdc22e322207d590271199c19e5725 Mon Sep 17 00:00:00 2001 From: Philipp Klaus Date: Thu, 15 Dec 2016 20:24:29 +0100 Subject: [PATCH] fix regression from 44228e6 concerning compression --- brother_ql/raster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brother_ql/raster.py b/brother_ql/raster.py index 839aee2..086afbd 100644 --- a/brother_ql/raster.py +++ b/brother_ql/raster.py @@ -189,7 +189,7 @@ class BrotherQLRaster(object): self.data += b'\x67\x00' # g 0x00 if self._compression: row = packbits.encode(row) - self.data += bytes([row_len]) + self.data += bytes([len(row)]) self.data += row def add_print(self, last_page=True):