Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/pdfreport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -800,14 +800,16 @@ bool PdfReport::FootprintReport(wxWindow* parent, const wxString& library, const
DryRun=!DryRun;
} while (!DryRun);

/* sort the index */
wxSortedArrayString SortedIndex(CompareFootprint);
wxArrayString SortedIndex;
for (wxStringToStringHashMap::iterator iter = FootprintIndex.begin(); iter != FootprintIndex.end(); iter++) {
wxString line = iter->first + wxT(" : ") + iter->second;
SortedIndex.Add(line);
}
FootprintIndex.clear();

/* sort the index */
SortedIndex.Sort(CompareFootprint);

/* print the index */
progress.Update(++progresspos,wxT("Generating the index"));
DryRun=false;
Expand Down