From 50c9d6930999e1fad5047762ff141f98a74b626c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Tue, 24 Sep 2019 17:59:51 +0200 Subject: [PATCH] Fix underlined cells rendering line width. --- libgui/GuiCanvasWxBackend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libgui/GuiCanvasWxBackend.py b/libgui/GuiCanvasWxBackend.py index 6aa5584..68b7551 100644 --- a/libgui/GuiCanvasWxBackend.py +++ b/libgui/GuiCanvasWxBackend.py @@ -82,9 +82,9 @@ class GuiCanvasWxBackend(): if (patch[2] & self._CellState.CS_UNDERLINE) or (patch[3] == "_"): dc.SetPen(self._pens[patch[0]]); if not isCursor: - dc.DrawLine(absPoint[0], absPoint[1] + self.cellSize[1] - 1, absPoint[0] + self.cellSize[0] - 1, absPoint[1] + self.cellSize[1] - 1) + dc.DrawLine(absPoint[0], absPoint[1] + self.cellSize[1] - 1, absPoint[0] + self.cellSize[0], absPoint[1] + self.cellSize[1] - 1) else: - dc.DrawLines((wx.Point2D(absPoint[0], absPoint[1] + self.cellSize[1] - 1), wx.Point2D(absPoint[0] + self.cellSize[0] - 1, absPoint[1] + self.cellSize[1] - 1),)) + dc.DrawLines((wx.Point2D(absPoint[0], absPoint[1] + self.cellSize[1] - 1), wx.Point2D(absPoint[0] + self.cellSize[0], absPoint[1] + self.cellSize[1] - 1),)) dc.SetPen(pen) if patch[3] != "_": if not isCursor: