Tidy up the SCH_PREVIEW_PANEL visibility flags.

Fixes https://gitlab.com/kicad/code/kicad/issues/9701
This commit is contained in:
Jeff Young 2021-11-20 15:27:24 +00:00
parent 9e3362d14c
commit 5a5af91d88
2 changed files with 6 additions and 1 deletions

View File

@ -414,8 +414,11 @@ void PANEL_EESCHEMA_COLOR_SETTINGS::createPreviewItems()
SCH_ITEM* sch_item = dynamic_cast<SCH_ITEM*>( item );
if( sch_item && sch_item->IsConnectable() )
{
sch_item->AutoplaceFields( nullptr, false );
sch_item->GetEndPoints( endPoints );
}
}
for( EDA_ITEM* item : m_previewItems )
{

View File

@ -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() );
renderSettings->LoadColors( Pgm().GetSettingsManager().GetColorSettings() );
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() );
// This fixes the zoom in and zoom out limits: