Call to LoadFromLibrary in onleftclick.cpp

Bug #1785056 reported by ronnie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Undecided
Unassigned

Bug Description

LoadFromLibrary called from pcbnew/onleftclick.cpp:371
MODULE* module = LoadModuleFromLibrary( wxEmptyString, Prj().PcbFootprintLibs() );

but defined as following:
pcb_base_frame.h:457
MODULE* PCB_BASE_FRAME::LoadModuleFromLibrary( const wxString& aLibrary, bool aUseFootprintViewer )

Second argument fo function is supposed to be bool. But here it's FP_LIB_TABLE* PROJECT::PcbFootprintLibs().

Prob not causing issues, but still a bug IMHO

Index: pcbnew/onleftclick.cpp
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- pcbnew/onleftclick.cpp (revision 099fcf1247593a499026372eb3b26eb662fa730d)
+++ pcbnew/onleftclick.cpp (date 1532756305000)
@@ -368,7 +368,7 @@
         if( (curr_item == NULL) || (curr_item->GetFlags() == 0) )
         {
             m_canvas->MoveCursorToCrossHair();
- MODULE* module = LoadModuleFromLibrary( wxEmptyString, Prj().PcbFootprintLibs() );
+ MODULE* module = LoadModuleFromLibrary( wxEmptyString );

             SetCurItem( (BOARD_ITEM*) module );

Revision history for this message
ronnie (ronnie81) wrote :
Revision history for this message
Jeff Young (jeyjey) wrote :

@ronnie, thanks for the bug report and patch!

I didn't merge it because we now use a Library Tree for Place Footprint (a la Place Symbol), so that code no longer exists. But your contribution is still valued. :)

Cheers,
Jeff.

Changed in kicad:
status: New → Fix Committed
Revision history for this message
ronnie (ronnie81) wrote :

@Jeff, thanks for the feedback. I hadn't fetched for a couple days... I just did so now and saw your changes.

Changed in kicad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.