CADSTAR PCB Archive Importer: Fix warning.
Need to std::erase after std::remove!
This commit is contained in:
parent
df590b1109
commit
7a624d8d44
|
@ -446,14 +446,20 @@ void CADSTAR_PCB_ARCHIVE_LOADER::loadBoardStackup()
|
|||
|
||||
//change last copper layer to be B_Cu instead of an inner layer
|
||||
LAYER_ID cadstarlastElecLayer = mCopperLayers.rbegin()->second;
|
||||
|
||||
PCB_LAYER_ID lastElecBrdId =
|
||||
stackup.GetStackupLayer( lastElectricalLayerIndex )->GetBrdLayerId();
|
||||
std::remove( layerIDs.begin(), layerIDs.end(), lastElecBrdId );
|
||||
|
||||
layerIDs.erase(
|
||||
std::remove( layerIDs.begin(), layerIDs.end(), lastElecBrdId ), layerIDs.end() );
|
||||
|
||||
layerIDs.push_back( PCB_LAYER_ID::B_Cu );
|
||||
tempKiCadLayer = stackup.GetStackupLayer( lastElectricalLayerIndex );
|
||||
tempKiCadLayer->SetBrdLayerId( PCB_LAYER_ID::B_Cu );
|
||||
|
||||
wxASSERT( mBoard->SetLayerName(
|
||||
tempKiCadLayer->GetBrdLayerId(), tempKiCadLayer->GetLayerName() ) );
|
||||
|
||||
mLayermap.at( cadstarlastElecLayer ) = PCB_LAYER_ID::B_Cu;
|
||||
|
||||
//make all layers enabled and visible
|
||||
|
|
Loading…
Reference in New Issue