This commit is contained in:
Jeff Young 2023-11-13 15:42:53 +00:00
parent d5a5d25623
commit 229bcc7308
2 changed files with 3 additions and 4 deletions

View File

@ -646,8 +646,6 @@ void LIB_TREE::showPreview( wxDataViewItem aItem )
if( !m_previewWindow )
m_previewWindow = new wxPopupWindow( topLevelParent );
bool wasShown = m_previewWindow->IsShown();
m_previewWindow->SetSize( PREVIEW_SIZE );
m_adapter->ShowPreview( m_previewWindow, aItem );

View File

@ -345,8 +345,9 @@ int SCH_DRAWING_TOOLS::PlaceSymbol( const TOOL_EVENT& aEvent )
// Pick the symbol to be placed
bool footprintPreviews = m_frame->eeconfig()->m_Appearance.footprint_preview;
PICKED_SYMBOL sel = m_frame->PickSymbolFromLibrary(
&filter, *historyList, alreadyPlaced, footprintPreviews );
PICKED_SYMBOL sel = m_frame->PickSymbolFromLibrary( &filter, *historyList,
alreadyPlaced,
footprintPreviews );
LIB_SYMBOL* libSymbol = sel.LibId.IsValid() ? m_frame->GetLibSymbol( sel.LibId )
: nullptr;