From 154d2b32a56518b47210bedb7c32216ebe4c3c6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Thu, 11 Jan 2018 23:13:46 +0100 Subject: [PATCH] MiRCARTCanvasImportStore.py:_parseCharAsColourSpec(): correctly process mIRC colour control code sequences specifying one single colour. MiRCARTToPngFile.py:export(): fix indentation. --- MiRCARTCanvasImportStore.py | 2 +- MiRCARTToPngFile.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MiRCARTCanvasImportStore.py b/MiRCARTCanvasImportStore.py index 9dc2c54..9150ea8 100644 --- a/MiRCARTCanvasImportStore.py +++ b/MiRCARTCanvasImportStore.py @@ -57,7 +57,7 @@ class MiRCARTCanvasImportStore(): return (int(colourSpec[0] or curColours[0]), \ int(colourSpec[1])) elif len(colourSpec) == 1: - return (int(colourSpec[0]), curColours[0]) + return (int(colourSpec[0]), curColours[1]) else: return (15, 1) # }}} diff --git a/MiRCARTToPngFile.py b/MiRCARTToPngFile.py index ed76ccc..de875b0 100755 --- a/MiRCARTToPngFile.py +++ b/MiRCARTToPngFile.py @@ -97,7 +97,7 @@ class MiRCARTToPngFile: else: if inCurCell[2] != " ": outColours[0] = self._ColourMapNormal[inCurCell[0][0]] - outColours[1] = self._ColourMapNormal[inCurCell[0][1]] + outColours[1] = self._ColourMapNormal[inCurCell[0][1]] outImgDraw.rectangle((*outCurPos, \ outCurPos[0] + self.outImgFontSize[0], \ outCurPos[1] + self.outImgFontSize[1]), \