Better warning messages in duplicate zone
This commit is contained in:
parent
256e47c00f
commit
893e018bc9
|
@ -128,8 +128,7 @@ void PCB_EDIT_FRAME::duplicateZone( wxDC* aDC, ZONE_CONTAINER* aZone )
|
||||||
if( success && ( aZone->GetLayer() == zoneSettings.m_CurrentZone_Layer ) )
|
if( success && ( aZone->GetLayer() == zoneSettings.m_CurrentZone_Layer ) )
|
||||||
{
|
{
|
||||||
DisplayError( this,
|
DisplayError( this,
|
||||||
_( "The duplicated zone is on the same layer as the initial zone, which has no sense.\n"
|
_( "The duplicated zone cannot be on the same layer as the original zone." ) );
|
||||||
"Please, choose an other layer for the new zone") );
|
|
||||||
success = false;
|
success = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -158,8 +157,7 @@ void PCB_EDIT_FRAME::duplicateZone( wxDC* aDC, ZONE_CONTAINER* aZone )
|
||||||
if( GetBoard()->GetAreaIndex( newZone ) >= 0
|
if( GetBoard()->GetAreaIndex( newZone ) >= 0
|
||||||
&& GetBoard()->Test_Drc_Areas_Outlines_To_Areas_Outlines( newZone, true ) )
|
&& GetBoard()->Test_Drc_Areas_Outlines_To_Areas_Outlines( newZone, true ) )
|
||||||
{
|
{
|
||||||
DisplayError( this,
|
DisplayInfoMessage( this, _( "Warning: The new zone fails DRC" ) );
|
||||||
_( "The outline of the duplicated zone fails DRC check!" ) );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
UpdateCopyOfZonesList( s_PickedList, s_AuxiliaryList, GetBoard() );
|
UpdateCopyOfZonesList( s_PickedList, s_AuxiliaryList, GetBoard() );
|
||||||
|
|
Loading…
Reference in New Issue