From 6d74cc031e12f2d2c74699a33cb82a6ccfdbc220 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 7 Nov 2023 15:02:06 +0000 Subject: [PATCH] Refine Scintilla margin recognition. Fixes https://gitlab.com/kicad/code/kicad/-/issues/16044 --- common/dialog_shim.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/dialog_shim.cpp b/common/dialog_shim.cpp index 130d339cc8..5ea22a18ea 100644 --- a/common/dialog_shim.cpp +++ b/common/dialog_shim.cpp @@ -2,6 +2,7 @@ * This program source code file is part of KiCad, a free EDA CAD application. * * Copyright (C) 2012 SoftPLC Corporation, Dick Hollenbeck + * Copyright (C) 2023 CERN * Copyright (C) 2012-2023 KiCad Developers, see AUTHORS.txt for contributors. * * This program is free software; you can redistribute it and/or @@ -392,7 +393,7 @@ void DIALOG_SHIM::SelectAllInTextCtrls( wxWindowList& children ) { // Respect an existing selection } - else if( scintilla->GetMarginType( 0 ) == wxSTC_MARGIN_NUMBER ) + else if( scintilla->GetMarginWidth( 0 ) > 0 ) { // Don't select-all in Custom Rules, etc. }