Fix units for ":power" operating points.
This commit is contained in:
parent
23c1a23faf
commit
c06cea2fe9
|
@ -1159,7 +1159,12 @@ bool SCH_SYMBOL::ResolveTextVar( wxString* token, int aDepth ) const
|
||||||
precision = precisionStr[0] - '0';
|
precision = precisionStr[0] - '0';
|
||||||
|
|
||||||
if( range.IsEmpty() )
|
if( range.IsEmpty() )
|
||||||
|
{
|
||||||
|
if( port == wxS( ":power" ) )
|
||||||
|
range = wxS( "~W" );
|
||||||
|
else
|
||||||
range = wxS( "~A" );
|
range = wxS( "~A" );
|
||||||
|
}
|
||||||
|
|
||||||
*token = Schematic()->GetOperatingPoint( signal.Lower(), precision, range );
|
*token = Schematic()->GetOperatingPoint( signal.Lower(), precision, range );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue