Eeschema, DIALOG_FIELD_PROPERTIES: fix a strange bug specific to wxMSW.

wxStyledTextCtrl, SetExtraAscent() + SetExtraDescent() methods, when set
to a value not 0 generate a strange bug: the text is not always shown
(when enter a char, once the text is shown, once the text is not shown)
(Perhaps a wxMSW bug) and this call is not needed on WXMSW

(cherry picked from commit d729b34986)
This commit is contained in:
jean-pierre charras
2025-03-30 17:32:49 +02:00
parent 3c6cb7b5b9
commit efea324ee4
@@ -79,6 +79,10 @@ DIALOG_FIELD_PROPERTIES::DIALOG_FIELD_PROPERTIES( SCH_BASE_FRAME* aParent, const
#ifdef __WXGTK__
m_StyledTextCtrl->SetExtraAscent( 6 );
m_StyledTextCtrl->SetExtraDescent( 2 );
#elif defined ( __WXMSW__ )
// Do nothing: SetExtraAscent() + SetExtraDescent(), when set to a value not 0
// Generate a strange bug: the text is not always shown (Perhaps a wxMSW bug)
// and this call is not needed on WXMSW
#else
m_StyledTextCtrl->SetExtraAscent( 1 );
m_StyledTextCtrl->SetExtraDescent( 2 );