Use the layer from the module item instead

They are both from the same argument, but this one make coverity happy.
This commit is contained in:
Ian McInerney 2020-01-12 19:39:39 +00:00
parent 52bfdb9703
commit 4ffbefb9dc
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ DIALOG_GRAPHIC_ITEM_PROPERTIES::DIALOG_GRAPHIC_ITEM_PROPERTIES( PCB_BASE_EDIT_FR
// If someone went to the trouble of setting the layer in a text editor, then there's
// very little sense in nagging them about it.
forbiddenLayers.set( m_item->GetLayer(), false );
forbiddenLayers.set( m_moduleItem->GetLayer(), false );
m_LayerSelectionCtrl->SetNotAllowedLayerSet( forbiddenLayers );
}