Browse Source

Cleanup.

newinvert
Jeff Young 2 years ago
parent
commit
229bcc7308
  1. 2
      common/widgets/lib_tree.cpp
  2. 5
      eeschema/tools/sch_drawing_tools.cpp

2
common/widgets/lib_tree.cpp

@ -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 );

5
eeschema/tools/sch_drawing_tools.cpp

@ -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;

Loading…
Cancel
Save