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" ),