From 0aaafc92fc8dc75aa1fa43027590caffda3fd6f1 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 31 Aug 2023 16:21:22 +0200 Subject: [PATCH] Fix a compil issue with gcc created by commit 21c54f97 (gcc only) --- pcbnew/pcb_textbox.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcbnew/pcb_textbox.cpp b/pcbnew/pcb_textbox.cpp index 941cd4cafa..6824d72990 100644 --- a/pcbnew/pcb_textbox.cpp +++ b/pcbnew/pcb_textbox.cpp @@ -593,6 +593,7 @@ static struct PCB_TEXTBOX_DESC const wxString textBoxProps = _( "Text Box" ); void ( PCB_TEXTBOX::*lineStyleSetter )( PLOT_DASH_TYPE ) = &PCB_TEXTBOX::SetLineStyle; + PLOT_DASH_TYPE ( PCB_TEXTBOX::*lineStyleGetter )() const = &PCB_TEXTBOX::GetLineStyle; propMgr.AddProperty( new PROPERTY( _HKI( "Border" ), &PCB_TEXTBOX::SetBorderEnabled, @@ -601,7 +602,7 @@ static struct PCB_TEXTBOX_DESC propMgr.AddProperty( new PROPERTY_ENUM( _HKI( "Border Style" ), lineStyleSetter, - &PCB_TEXTBOX::GetLineStyle ), + lineStyleGetter ), textBoxProps ); propMgr.AddProperty( new PROPERTY( _HKI( "Border Width" ),