Get lib shape fill color from settings if not specified by shape

This commit is contained in:
Ian McInerney 2022-09-24 03:31:02 +01:00
parent eb2ea5bcd6
commit d9846a006a
1 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,7 @@ bool DIALOG_LIB_SHAPE_PROPERTIES::TransferDataToWindow()
COLOR4D color = m_shape->GetStroke().GetColor();
if( color == COLOR4D::UNSPECIFIED )
m_frame->GetRenderSettings()->GetLayerColor( LAYER_DEVICE );
color = m_frame->GetRenderSettings()->GetLayerColor( LAYER_DEVICE );
m_fillColorSwatch->SetSwatchColor( color, false );
}
@ -185,7 +185,7 @@ void DIALOG_LIB_SHAPE_PROPERTIES::onFill( wxCommandEvent& event )
COLOR4D color = m_shape->GetStroke().GetColor();
if( color == COLOR4D::UNSPECIFIED )
m_frame->GetRenderSettings()->GetLayerColor( LAYER_DEVICE );
color = m_frame->GetRenderSettings()->GetLayerColor( LAYER_DEVICE );
m_fillColorSwatch->SetSwatchColor( color, false );
}