Tidy up the SCH_PREVIEW_PANEL visibility flags.
Fixes https://gitlab.com/kicad/code/kicad/issues/9701
This commit is contained in:
parent
9e3362d14c
commit
5a5af91d88
|
@ -414,7 +414,10 @@ void PANEL_EESCHEMA_COLOR_SETTINGS::createPreviewItems()
|
||||||
SCH_ITEM* sch_item = dynamic_cast<SCH_ITEM*>( item );
|
SCH_ITEM* sch_item = dynamic_cast<SCH_ITEM*>( item );
|
||||||
|
|
||||||
if( sch_item && sch_item->IsConnectable() )
|
if( sch_item && sch_item->IsConnectable() )
|
||||||
|
{
|
||||||
|
sch_item->AutoplaceFields( nullptr, false );
|
||||||
sch_item->GetEndPoints( endPoints );
|
sch_item->GetEndPoints( endPoints );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for( EDA_ITEM* item : m_previewItems )
|
for( EDA_ITEM* item : m_previewItems )
|
||||||
|
|
|
@ -57,7 +57,9 @@ SCH_PREVIEW_PANEL::SCH_PREVIEW_PANEL( wxWindow* aParentWindow, wxWindowID aWindo
|
||||||
auto* renderSettings = static_cast<KIGFX::SCH_RENDER_SETTINGS*>( m_painter->GetSettings() );
|
auto* renderSettings = static_cast<KIGFX::SCH_RENDER_SETTINGS*>( m_painter->GetSettings() );
|
||||||
renderSettings->LoadColors( Pgm().GetSettingsManager().GetColorSettings() );
|
renderSettings->LoadColors( Pgm().GetSettingsManager().GetColorSettings() );
|
||||||
renderSettings->m_ShowPinsElectricalType = false;
|
renderSettings->m_ShowPinsElectricalType = false;
|
||||||
renderSettings->m_TextOffsetRatio = 0.30;
|
renderSettings->m_ShowHiddenText = false;
|
||||||
|
renderSettings->m_ShowHiddenPins = false;
|
||||||
|
renderSettings->m_TextOffsetRatio = 0.35;
|
||||||
|
|
||||||
m_view->SetPainter( m_painter.get() );
|
m_view->SetPainter( m_painter.get() );
|
||||||
// This fixes the zoom in and zoom out limits:
|
// This fixes the zoom in and zoom out limits:
|
||||||
|
|
Loading…
Reference in New Issue