Get lib shape fill color from settings if not specified by shape
This commit is contained in:
parent
eb2ea5bcd6
commit
d9846a006a
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue