Setup default colors in the COLOR_SWATCHes.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17517
This commit is contained in:
Jeff Young 2024-03-22 12:40:48 +00:00
parent a3f3da5a7d
commit 90566eb735
1 changed files with 3 additions and 0 deletions

View File

@ -107,6 +107,7 @@ bool DIALOG_TABLECELL_PROPERTIES::TransferDataToWindow()
m_textColorBook->SetSelection( 1 );
m_textColorSwatch->SetSwatchColor( cell->GetTextColor(), false );
m_textColorSwatch->SetDefaultColor( COLOR4D::UNSPECIFIED );
m_fillColorBook->SetSelection( 1 );
@ -115,6 +116,8 @@ bool DIALOG_TABLECELL_PROPERTIES::TransferDataToWindow()
else
m_fillColorSwatch->SetSwatchColor( COLOR4D::UNSPECIFIED, false );
m_fillColorSwatch->SetDefaultColor( COLOR4D::UNSPECIFIED );
m_marginLeft.SetValue( cell->GetMarginLeft() );
m_marginTop.SetValue( cell->GetMarginTop() );
m_marginRight.SetValue( cell->GetMarginRight() );