fix regression from 44228e6 concerning compression

This commit is contained in:
Philipp Klaus
2016-12-15 20:24:29 +01:00
parent 44228e6b16
commit 35eae0ab99
+1 -1
View File
@@ -189,7 +189,7 @@ class BrotherQLRaster(object):
self.data += b'\x67\x00' # g 0x00 self.data += b'\x67\x00' # g 0x00
if self._compression: if self._compression:
row = packbits.encode(row) row = packbits.encode(row)
self.data += bytes([row_len]) self.data += bytes([len(row)])
self.data += row self.data += row
def add_print(self, last_page=True): def add_print(self, last_page=True):