Don't show locked shadow in pad preview.

This commit is contained in:
Jeff Young 2025-08-08 08:51:35 +01:00
parent 66ee17cdcd
commit 60dbfd3eec

View File

@ -359,6 +359,9 @@ void DIALOG_PAD_PROPERTIES::prepareCanvas()
settings->SetHighContrast( false );
settings->m_ContrastModeDisplay = HIGH_CONTRAST_MODE::NORMAL;
// don't show the locked item shadow in pad preview
view->SetLayerVisible( LAYER_LOCKED_ITEM_SHADOW, false );
// gives a non null grid size (0.001mm) because GAL layer does not like a 0 size grid:
double gridsize = 0.001 * pcbIUScale.IU_PER_MM;
view->GetGAL()->SetGridSize( VECTOR2D( gridsize, gridsize ) );