Put MSW bug fix back in.

This commit is contained in:
Jeff Young 2021-02-09 21:09:51 +00:00
parent 909ebe4b78
commit 05d2053ded
2 changed files with 4 additions and 2 deletions

View File

@ -133,7 +133,8 @@ DIALOG_LABEL_EDITOR::DIALOG_LABEL_EDITOR( SCH_EDIT_FRAME* aParent, SCH_TEXT* aTe
for( size_t i = 0; i < wxSTC_STYLE_MAX; ++i )
m_valueMultiLine->StyleSetFont( i, fixedFont );
m_valueMultiLine->StyleClearAll(); // Addresses a bug in wx3.0 where styles are not correctly set
// Addresses a bug in wx3.0 where styles are not correctly set
m_valueMultiLine->StyleClearAll();
// DIALOG_SHIM needs a unique hash_key because classname is not sufficient because the
// various versions have different controls so we want to store sizes for each version.

View File

@ -97,7 +97,8 @@ DIALOG_TEXT_PROPERTIES::DIALOG_TEXT_PROPERTIES( PCB_BASE_EDIT_FRAME* aParent, BO
for( size_t i = 0; i < wxSTC_STYLE_MAX; ++i )
m_MultiLineText->StyleSetFont( i, fixedFont );
m_MultiLineText->StyleClearAll(); // Addresses a bug in wx3.0 where styles are not correctly set
// Addresses a bug in wx3.0 where styles are not correctly set
m_MultiLineText->StyleClearAll();
// This option makes sense only for footprint texts; texts on board are always visible.
m_Visible->SetValue( true );