From 858f6b0fc2d19861df933f0f241ec1ab6d66a20b Mon Sep 17 00:00:00 2001
From: Jeff Young <jeff@rokeby.ie>
Date: Mon, 17 Mar 2025 16:59:39 +0000
Subject: [PATCH] Adjust GTK STC margins.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16685
---
 common/widgets/grid_text_helpers.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/widgets/grid_text_helpers.cpp b/common/widgets/grid_text_helpers.cpp
index 737b3587ed..d576342f40 100644
--- a/common/widgets/grid_text_helpers.cpp
+++ b/common/widgets/grid_text_helpers.cpp
@@ -144,7 +144,7 @@ void GRID_CELL_STC_EDITOR::Create( wxWindow* aParent, wxWindowID aId, wxEvtHandl
                                       wxBORDER_NONE );
 
 #ifdef __WXGTK__
-    stc_ctrl()->SetExtraAscent( 6 );
+    stc_ctrl()->SetExtraAscent( 2 );
     stc_ctrl()->SetExtraDescent( 2 );
 #endif