Handle SPICE prefixes for operating point data.
Also adjusts the min-pin lenght as some symbols have very short pins.
This commit is contained in:
parent
b53e0a85b8
commit
be0a9e2738
|
@ -1352,6 +1352,10 @@ void SCH_EDIT_FRAME::RefreshOperatingPointDisplay()
|
||||||
{
|
{
|
||||||
SIM_MODEL& model = simLibMgr.CreateModel( &GetCurrentSheet(), *symbol ).model;
|
SIM_MODEL& model = simLibMgr.CreateModel( &GetCurrentSheet(), *symbol ).model;
|
||||||
|
|
||||||
|
SPICE_ITEM spiceItem;
|
||||||
|
spiceItem.refName = ref;
|
||||||
|
ref = model.SpiceGenerator().ItemName( spiceItem );
|
||||||
|
|
||||||
for( const auto& modelPin : model.GetPins() )
|
for( const auto& modelPin : model.GetPins() )
|
||||||
{
|
{
|
||||||
SCH_PIN* symbolPin = symbol->GetPin( modelPin.get().symbolPinNumber );
|
SCH_PIN* symbolPin = symbol->GetPin( modelPin.get().symbolPinNumber );
|
||||||
|
|
|
@ -1357,7 +1357,7 @@ void SCH_PAINTER::draw( const LIB_PIN *aPin, int aLayer, bool aDimmed )
|
||||||
int textOffset = KiROUND( textSize * 0.22 );
|
int textOffset = KiROUND( textSize * 0.22 );
|
||||||
TEXT_ATTRIBUTES attrs;
|
TEXT_ATTRIBUTES attrs;
|
||||||
|
|
||||||
if( len > KiROUND( textSize * 1.8 ) )
|
if( len > textSize )
|
||||||
{
|
{
|
||||||
if( dir.x == 0 )
|
if( dir.x == 0 )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue