Draw boundary based on first zone layer.

This commit is contained in:
Jeff Young 2022-02-28 21:40:36 +00:00
parent 4dc652497d
commit 58b8d63ff8
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@ bool ZONE_CREATE_HELPER::OnFirstPoint( POLYGON_GEOM_MANAGER& aMgr )
// set up properties from zone
const auto& settings = *m_parentView.GetPainter()->GetSettings();
COLOR4D color = settings.GetColor( nullptr, m_zone->GetLayer() );
COLOR4D color = settings.GetColor( nullptr, m_zone->GetFirstLayer() );
m_previewItem.SetStrokeColor( COLOR4D::WHITE );
m_previewItem.SetFillColor( color.WithAlpha( 0.2 ) );