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:
parent
52bfdb9703
commit
4ffbefb9dc
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue