Cleanup.
This commit is contained in:
parent
d5a5d25623
commit
229bcc7308
|
@ -646,8 +646,6 @@ void LIB_TREE::showPreview( wxDataViewItem aItem )
|
||||||
if( !m_previewWindow )
|
if( !m_previewWindow )
|
||||||
m_previewWindow = new wxPopupWindow( topLevelParent );
|
m_previewWindow = new wxPopupWindow( topLevelParent );
|
||||||
|
|
||||||
bool wasShown = m_previewWindow->IsShown();
|
|
||||||
|
|
||||||
m_previewWindow->SetSize( PREVIEW_SIZE );
|
m_previewWindow->SetSize( PREVIEW_SIZE );
|
||||||
|
|
||||||
m_adapter->ShowPreview( m_previewWindow, aItem );
|
m_adapter->ShowPreview( m_previewWindow, aItem );
|
||||||
|
|
|
@ -345,8 +345,9 @@ int SCH_DRAWING_TOOLS::PlaceSymbol( const TOOL_EVENT& aEvent )
|
||||||
|
|
||||||
// Pick the symbol to be placed
|
// Pick the symbol to be placed
|
||||||
bool footprintPreviews = m_frame->eeconfig()->m_Appearance.footprint_preview;
|
bool footprintPreviews = m_frame->eeconfig()->m_Appearance.footprint_preview;
|
||||||
PICKED_SYMBOL sel = m_frame->PickSymbolFromLibrary(
|
PICKED_SYMBOL sel = m_frame->PickSymbolFromLibrary( &filter, *historyList,
|
||||||
&filter, *historyList, alreadyPlaced, footprintPreviews );
|
alreadyPlaced,
|
||||||
|
footprintPreviews );
|
||||||
|
|
||||||
LIB_SYMBOL* libSymbol = sel.LibId.IsValid() ? m_frame->GetLibSymbol( sel.LibId )
|
LIB_SYMBOL* libSymbol = sel.LibId.IsValid() ? m_frame->GetLibSymbol( sel.LibId )
|
||||||
: nullptr;
|
: nullptr;
|
||||||
|
|
Loading…
Reference in New Issue