From e0366971fb0011cbaacacb3ddf264ca37681398e Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 8 Jul 2019 14:01:47 -0700 Subject: [PATCH] Fix probable copy/paste error --- wx/lib/inspection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wx/lib/inspection.py b/wx/lib/inspection.py index 1f511212..f014ac87 100644 --- a/wx/lib/inspection.py +++ b/wx/lib/inspection.py @@ -874,7 +874,7 @@ class _InspectionHighlighter(object): pos = self.FindHighlightPos(tlw, win.ClientToScreen(pos)) rect.SetPosition(pos) if rect.width < 1: rect.width = 1 - if rect.width < 1: rect.width = 1 + if rect.height < 1: rect.height = 1 self.DoHighlight(tlw, rect, self.color1, penWidth)