symbol checker: do not forget to display error messages about pins not on grid.
Fixes #16759 https://gitlab.com/kicad/code/kicad/-/issues/16759
This commit is contained in:
parent
74e02d7701
commit
12357cfba6
|
@ -292,6 +292,8 @@ void CheckLibSymbol( LIB_SYMBOL* aSymbol, std::vector<wxString>& aMessages,
|
||||||
|| ( (pin->GetPosition().y % clamped_grid_size) != 0 ) )
|
|| ( (pin->GetPosition().y % clamped_grid_size) != 0 ) )
|
||||||
{
|
{
|
||||||
// pin is off grid
|
// pin is off grid
|
||||||
|
msg.Empty();
|
||||||
|
|
||||||
if( aSymbol->HasConversion() && pin->GetConvert() )
|
if( aSymbol->HasConversion() && pin->GetConvert() )
|
||||||
{
|
{
|
||||||
if( aSymbol->GetUnitCount() <= 1 )
|
if( aSymbol->GetUnitCount() <= 1 )
|
||||||
|
@ -312,7 +314,7 @@ void CheckLibSymbol( LIB_SYMBOL* aSymbol, std::vector<wxString>& aMessages,
|
||||||
aUnitsProvider->MessageTextFromValue( pin->GetPosition().x ),
|
aUnitsProvider->MessageTextFromValue( pin->GetPosition().x ),
|
||||||
aUnitsProvider->MessageTextFromValue( -pin->GetPosition().y ),
|
aUnitsProvider->MessageTextFromValue( -pin->GetPosition().y ),
|
||||||
'A' + pin->GetUnit() - 1 );
|
'A' + pin->GetUnit() - 1 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -335,6 +337,9 @@ void CheckLibSymbol( LIB_SYMBOL* aSymbol, std::vector<wxString>& aMessages,
|
||||||
'A' + pin->GetUnit() - 1 );
|
'A' + pin->GetUnit() - 1 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
msg += wxT( "<br><br>" );
|
||||||
|
aMessages.push_back( msg );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue