Loading pcbnew/dialogs/dialog_pad_properties.cpp +17 −15 Original line number Original line Diff line number Diff line Loading @@ -673,11 +673,11 @@ bool DIALOG_PAD_PROPERTIES::padValuesOK() } } LAYER_MSK padlayers_mask = m_dummyPad->GetLayerMask(); LAYER_MSK padlayers_mask = m_dummyPad->GetLayerMask(); if( ( padlayers_mask == 0 ) && ( m_dummyPad->GetAttribute() != PAD_HOLE_NOT_PLATED ) ) error_msgs.Add( _( "Error: pad has no layer and is not a mechanical pad" ) ); padlayers_mask &= (LAYER_BACK | LAYER_FRONT); if( padlayers_mask == 0 ) if( padlayers_mask == 0 ) error_msgs.Add( _( "Error: pad has no layer" ) ); if( ( padlayers_mask & (LAYER_BACK | LAYER_FRONT) ) == 0 ) { { if( m_dummyPad->GetDrillSize().x || m_dummyPad->GetDrillSize().y ) if( m_dummyPad->GetDrillSize().x || m_dummyPad->GetDrillSize().y ) { { Loading Loading @@ -715,20 +715,21 @@ bool DIALOG_PAD_PROPERTIES::padValuesOK() switch( m_dummyPad->GetAttribute() ) switch( m_dummyPad->GetAttribute() ) { { case PAD_STANDARD : // Pad through hole, a hole is expected case PAD_HOLE_NOT_PLATED: // Not plated, but through hole, a hole is expected case PAD_STANDARD : // Pad through hole, a hole is also expected if( m_dummyPad->GetDrillSize().x <= 0 ) if( m_dummyPad->GetDrillSize().x <= 0 ) error_msgs.Add( _( "Incorrect value for pad drill (too small value)" ) ); error_msgs.Add( _( "Error: Through hole pad: drill diameter set to 0" ) ); break; break; case PAD_CONN: // Connector pads are smd pads, just they do not have solder paste. if( (padlayers_mask & SOLDERPASTE_LAYER_BACK) || (padlayers_mask & SOLDERPASTE_LAYER_FRONT) ) error_msgs.Add( _( "Error: Connector pads are not on the solder paste layer\n" "Use SMD pads instead" ) ); // Fall trough case PAD_SMD: // SMD and Connector pads (One external copper layer only) case PAD_SMD: // SMD and Connector pads (One external copper layer only) if( (padlayers_mask & LAYER_BACK) && (padlayers_mask & LAYER_FRONT) ) if( (padlayers_mask & LAYER_BACK) && (padlayers_mask & LAYER_FRONT) ) error_msgs.Add( _( "Error: only one copper layer allowed for this pad" ) ); error_msgs.Add( _( "Error: only one copper layer allowed for SMD or Connector pads" ) ); break; case PAD_CONN: // connectors can have pads on "All" Cu layers. break; case PAD_HOLE_NOT_PLATED: // Not plated break; break; } } Loading @@ -738,6 +739,7 @@ bool DIALOG_PAD_PROPERTIES::padValuesOK() dlg.ListSet( error_msgs ); dlg.ListSet( error_msgs ); dlg.ShowModal(); dlg.ShowModal(); } } return error_msgs.GetCount() == 0; return error_msgs.GetCount() == 0; } } Loading pcbnew/pcb_parser.cpp +3 −2 Original line number Original line Diff line number Diff line Loading @@ -2426,8 +2426,9 @@ ZONE_CONTAINER* PCB_PARSER::parseZONE_CONTAINER() throw( IO_ERROR, PARSE_ERROR ) NeedSYMBOLorNUMBER(); NeedSYMBOLorNUMBER(); if( zone->GetNet()->GetNetname() != FromUTF8() ) if( zone->GetNet()->GetNetname() != FromUTF8() ) { { wxString msg = _( "There is a zone that belongs to a not " wxString msg; "existing net (" ) + FromUTF8() + _("), you should verify it." ); msg.Printf( _( "There is a zone that belongs to a not existing net" "(%s), you should verify it." ), GetChars( FromUTF8() ) ); DisplayError( NULL, msg ); DisplayError( NULL, msg ); zone->SetNetCode( NETINFO_LIST::UNCONNECTED ); zone->SetNetCode( NETINFO_LIST::UNCONNECTED ); } } Loading Loading
pcbnew/dialogs/dialog_pad_properties.cpp +17 −15 Original line number Original line Diff line number Diff line Loading @@ -673,11 +673,11 @@ bool DIALOG_PAD_PROPERTIES::padValuesOK() } } LAYER_MSK padlayers_mask = m_dummyPad->GetLayerMask(); LAYER_MSK padlayers_mask = m_dummyPad->GetLayerMask(); if( ( padlayers_mask == 0 ) && ( m_dummyPad->GetAttribute() != PAD_HOLE_NOT_PLATED ) ) error_msgs.Add( _( "Error: pad has no layer and is not a mechanical pad" ) ); padlayers_mask &= (LAYER_BACK | LAYER_FRONT); if( padlayers_mask == 0 ) if( padlayers_mask == 0 ) error_msgs.Add( _( "Error: pad has no layer" ) ); if( ( padlayers_mask & (LAYER_BACK | LAYER_FRONT) ) == 0 ) { { if( m_dummyPad->GetDrillSize().x || m_dummyPad->GetDrillSize().y ) if( m_dummyPad->GetDrillSize().x || m_dummyPad->GetDrillSize().y ) { { Loading Loading @@ -715,20 +715,21 @@ bool DIALOG_PAD_PROPERTIES::padValuesOK() switch( m_dummyPad->GetAttribute() ) switch( m_dummyPad->GetAttribute() ) { { case PAD_STANDARD : // Pad through hole, a hole is expected case PAD_HOLE_NOT_PLATED: // Not plated, but through hole, a hole is expected case PAD_STANDARD : // Pad through hole, a hole is also expected if( m_dummyPad->GetDrillSize().x <= 0 ) if( m_dummyPad->GetDrillSize().x <= 0 ) error_msgs.Add( _( "Incorrect value for pad drill (too small value)" ) ); error_msgs.Add( _( "Error: Through hole pad: drill diameter set to 0" ) ); break; break; case PAD_CONN: // Connector pads are smd pads, just they do not have solder paste. if( (padlayers_mask & SOLDERPASTE_LAYER_BACK) || (padlayers_mask & SOLDERPASTE_LAYER_FRONT) ) error_msgs.Add( _( "Error: Connector pads are not on the solder paste layer\n" "Use SMD pads instead" ) ); // Fall trough case PAD_SMD: // SMD and Connector pads (One external copper layer only) case PAD_SMD: // SMD and Connector pads (One external copper layer only) if( (padlayers_mask & LAYER_BACK) && (padlayers_mask & LAYER_FRONT) ) if( (padlayers_mask & LAYER_BACK) && (padlayers_mask & LAYER_FRONT) ) error_msgs.Add( _( "Error: only one copper layer allowed for this pad" ) ); error_msgs.Add( _( "Error: only one copper layer allowed for SMD or Connector pads" ) ); break; case PAD_CONN: // connectors can have pads on "All" Cu layers. break; case PAD_HOLE_NOT_PLATED: // Not plated break; break; } } Loading @@ -738,6 +739,7 @@ bool DIALOG_PAD_PROPERTIES::padValuesOK() dlg.ListSet( error_msgs ); dlg.ListSet( error_msgs ); dlg.ShowModal(); dlg.ShowModal(); } } return error_msgs.GetCount() == 0; return error_msgs.GetCount() == 0; } } Loading
pcbnew/pcb_parser.cpp +3 −2 Original line number Original line Diff line number Diff line Loading @@ -2426,8 +2426,9 @@ ZONE_CONTAINER* PCB_PARSER::parseZONE_CONTAINER() throw( IO_ERROR, PARSE_ERROR ) NeedSYMBOLorNUMBER(); NeedSYMBOLorNUMBER(); if( zone->GetNet()->GetNetname() != FromUTF8() ) if( zone->GetNet()->GetNetname() != FromUTF8() ) { { wxString msg = _( "There is a zone that belongs to a not " wxString msg; "existing net (" ) + FromUTF8() + _("), you should verify it." ); msg.Printf( _( "There is a zone that belongs to a not existing net" "(%s), you should verify it." ), GetChars( FromUTF8() ) ); DisplayError( NULL, msg ); DisplayError( NULL, msg ); zone->SetNetCode( NETINFO_LIST::UNCONNECTED ); zone->SetNetCode( NETINFO_LIST::UNCONNECTED ); } } Loading