Make sure legend reflects gain/phase for AC small signal analyses.
Fixes https://gitlab.com/kicad/code/kicad/issues/14301
(cherry picked from commit ec6d709929)
This commit is contained in:
@@ -344,7 +344,7 @@ void mpInfoLegend::Plot( wxDC& dc, mpWindow& w )
|
||||
|
||||
if( layer->GetLayerType() == mpLAYER_PLOT && layer->IsVisible() )
|
||||
{
|
||||
label = layer->GetName();
|
||||
label = layer->GetDisplayName();
|
||||
dc.GetTextExtent( label, &tmpX, &tmpY );
|
||||
textX = ( textX > tmpX + baseWidth ) ? textX : tmpX + baseWidth + mpLEGEND_MARGIN;
|
||||
textY += tmpY;
|
||||
@@ -367,7 +367,7 @@ void mpInfoLegend::Plot( wxDC& dc, mpWindow& w )
|
||||
|
||||
if( layer->GetLayerType() == mpLAYER_PLOT && layer->IsVisible() )
|
||||
{
|
||||
label = layer->GetName();
|
||||
label = layer->GetDisplayName();
|
||||
lpen = layer->GetPen();
|
||||
dc.GetTextExtent( label, &tmpX, &tmpY );
|
||||
dc.SetPen( lpen );
|
||||
|
||||
Reference in New Issue
Block a user