~cern-kicad/kicad/kicad-pns-tom

« back to all changes in this revision

Viewing changes to common/edaappl.cpp

Footprint library table work, minor fixes, and code cleaning.

* Fix a bug when full file name and path are passed to FOOTPRINT_INFO::
  ReadFootprintFiles() which I created in bug fix lp:593989.
* Fix a wxString debug assertion in EDA_APP::InitEDA_Appl() when the KICAD
  environment variable is defined as an empty string.
* Add error dialog when libraries cannot be found in system search path
  when loading footprint using the select footprint dialog.
* Add footprint library name column to the EDA_LIST_DIALOG when selecting
  footprints from the list.
* Allow reading all columns from the selected row in EDA_LIST_DIALOG.
* Remove redundant sort from EDA_LIST_DIALOG constructor
* Add library name member variable and accessors to FOOTPRINT_INFO.
* Make headers translatable for Eeschema select component from list dialog.
* Add some helper methods to FPID for identifying the FPID type and validity.
* Remove a bunch of trailing whitespace and add missing license comments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
326
326
    {
327
327
        m_KicadEnv.Replace( WIN_STRING_DIR_SEP, UNIX_STRING_DIR_SEP );
328
328
 
329
 
        if( m_KicadEnv.Last() != '/' )
 
329
        if( !m_KicadEnv.IsEmpty() && m_KicadEnv.Last() != '/' )
330
330
            m_KicadEnv += UNIX_STRING_DIR_SEP;
331
331
    }
332
332