Loading cvpcb/class_footprints_listbox.cpp +6 −4 Original line number Original line Diff line number Diff line Loading @@ -60,12 +60,14 @@ int FOOTPRINTS_LISTBOX::GetCount() void FOOTPRINTS_LISTBOX::SetString( unsigned linecount, const wxString& text ) void FOOTPRINTS_LISTBOX::SetString( unsigned linecount, const wxString& text ) { { if( linecount >= m_footprintList.Count() ) unsigned count = m_footprintList.Count(); linecount = m_footprintList.Count() - 1; if( count > 0 ) { if( linecount >= 0 ) if( linecount >= count ) linecount = count - 1; m_footprintList[linecount] = text; m_footprintList[linecount] = text; } } } wxString FOOTPRINTS_LISTBOX::GetSelectedFootprint() wxString FOOTPRINTS_LISTBOX::GetSelectedFootprint() Loading cvpcb/class_library_listbox.cpp +6 −4 Original line number Original line Diff line number Diff line Loading @@ -60,12 +60,14 @@ int LIBRARY_LISTBOX::GetCount() void LIBRARY_LISTBOX::SetString( unsigned linecount, const wxString& text ) void LIBRARY_LISTBOX::SetString( unsigned linecount, const wxString& text ) { { if( linecount >= m_libraryList.Count() ) unsigned count = m_libraryList.Count(); linecount = m_libraryList.Count() - 1; if( count > 0 ) { if( linecount >= 0 ) if( linecount >= count ) linecount = count - 1; m_libraryList[linecount] = text; m_libraryList[linecount] = text; } } } wxString LIBRARY_LISTBOX::GetSelectedLibrary() wxString LIBRARY_LISTBOX::GetSelectedLibrary() Loading pcb_calculator/datafile_read_write.h +1 −1 Original line number Original line Diff line number Diff line #ifndef DATAFILE_READ_WRITE_H_ #ifndef DATAFILE_READ_WRITE_H_ #define PDATAFILE_READ_WRITE_H_ #define DATAFILE_READ_WRITE_H_ /* /* * This program source code file is part of KiCad, a free EDA CAD application. * This program source code file is part of KiCad, a free EDA CAD application. * * Loading pcbnew/modview_frame.cpp +2 −2 Original line number Original line Diff line number Diff line Loading @@ -713,8 +713,8 @@ void FOOTPRINT_VIEWER_FRAME::OnIterateFootprintList( wxCommandEvent& event ) break; break; default: default: wxFAIL_MSG( wxT( "FOOTPRINT_VIEWER_FRAME::OnIterateFootprintList error: id = " ) + wxString id = wxString::Format(wxT("%i"),event.GetId()); event.GetId() ); wxFAIL_MSG( wxT( "FOOTPRINT_VIEWER_FRAME::OnIterateFootprintList error: id = " ) + id ); } } } } Loading Loading
cvpcb/class_footprints_listbox.cpp +6 −4 Original line number Original line Diff line number Diff line Loading @@ -60,12 +60,14 @@ int FOOTPRINTS_LISTBOX::GetCount() void FOOTPRINTS_LISTBOX::SetString( unsigned linecount, const wxString& text ) void FOOTPRINTS_LISTBOX::SetString( unsigned linecount, const wxString& text ) { { if( linecount >= m_footprintList.Count() ) unsigned count = m_footprintList.Count(); linecount = m_footprintList.Count() - 1; if( count > 0 ) { if( linecount >= 0 ) if( linecount >= count ) linecount = count - 1; m_footprintList[linecount] = text; m_footprintList[linecount] = text; } } } wxString FOOTPRINTS_LISTBOX::GetSelectedFootprint() wxString FOOTPRINTS_LISTBOX::GetSelectedFootprint() Loading
cvpcb/class_library_listbox.cpp +6 −4 Original line number Original line Diff line number Diff line Loading @@ -60,12 +60,14 @@ int LIBRARY_LISTBOX::GetCount() void LIBRARY_LISTBOX::SetString( unsigned linecount, const wxString& text ) void LIBRARY_LISTBOX::SetString( unsigned linecount, const wxString& text ) { { if( linecount >= m_libraryList.Count() ) unsigned count = m_libraryList.Count(); linecount = m_libraryList.Count() - 1; if( count > 0 ) { if( linecount >= 0 ) if( linecount >= count ) linecount = count - 1; m_libraryList[linecount] = text; m_libraryList[linecount] = text; } } } wxString LIBRARY_LISTBOX::GetSelectedLibrary() wxString LIBRARY_LISTBOX::GetSelectedLibrary() Loading
pcb_calculator/datafile_read_write.h +1 −1 Original line number Original line Diff line number Diff line #ifndef DATAFILE_READ_WRITE_H_ #ifndef DATAFILE_READ_WRITE_H_ #define PDATAFILE_READ_WRITE_H_ #define DATAFILE_READ_WRITE_H_ /* /* * This program source code file is part of KiCad, a free EDA CAD application. * This program source code file is part of KiCad, a free EDA CAD application. * * Loading
pcbnew/modview_frame.cpp +2 −2 Original line number Original line Diff line number Diff line Loading @@ -713,8 +713,8 @@ void FOOTPRINT_VIEWER_FRAME::OnIterateFootprintList( wxCommandEvent& event ) break; break; default: default: wxFAIL_MSG( wxT( "FOOTPRINT_VIEWER_FRAME::OnIterateFootprintList error: id = " ) + wxString id = wxString::Format(wxT("%i"),event.GetId()); event.GetId() ); wxFAIL_MSG( wxT( "FOOTPRINT_VIEWER_FRAME::OnIterateFootprintList error: id = " ) + id ); } } } } Loading