Gerbview: fix a minor but annoying issue about the drawing sheet color.

The color was not always the selected color but sometimes the default color.
This commit is contained in:
jean-pierre charras 2022-09-08 20:34:32 +02:00
parent 758ba5ab18
commit 9626f0b66c
1 changed files with 4 additions and 0 deletions

View File

@ -84,6 +84,10 @@ void GERBVIEW_RENDER_SETTINGS::LoadColors( const COLOR_SETTINGS* aSettings )
for( int i = GAL_LAYER_ID_START; i < GAL_LAYER_ID_END; i++ )
m_layerColors[i] = aSettings->GetColor( i );
// Ensure the generic LAYER_DRAWINGSHEET has the same color as the specialized
// LAYER_GERBVIEW_DRAWINGSHEET
m_layerColors[LAYER_DRAWINGSHEET] = m_layerColors[ LAYER_GERBVIEW_DRAWINGSHEET ];
update();
}