Browse Source

Handle SPICE prefixes for operating point data.

Also adjusts the min-pin lenght as some symbols have very short pins.
newinvert
Jeff Young 3 years ago
parent
commit
be0a9e2738
  1. 4
      eeschema/sch_edit_frame.cpp
  2. 2
      eeschema/sch_painter.cpp

4
eeschema/sch_edit_frame.cpp

@ -1352,6 +1352,10 @@ void SCH_EDIT_FRAME::RefreshOperatingPointDisplay()
{
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() )
{
SCH_PIN* symbolPin = symbol->GetPin( modelPin.get().symbolPinNumber );

2
eeschema/sch_painter.cpp

@ -1357,7 +1357,7 @@ void SCH_PAINTER::draw( const LIB_PIN *aPin, int aLayer, bool aDimmed )
int textOffset = KiROUND( textSize * 0.22 );
TEXT_ATTRIBUTES attrs;
if( len > KiROUND( textSize * 1.8 ) )
if( len > textSize )
{
if( dir.x == 0 )
{

Loading…
Cancel
Save