mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Sort col may not be in the current columns. (KICAD-G74)
This commit is contained in:
parent
7b0aceb99e
commit
4e4dfa0a38
@ -971,7 +971,10 @@ BOM_PRESET FIELDS_EDITOR_GRID_DATA_MODEL::GetBomSettings()
|
||||
BOM_PRESET current;
|
||||
current.readOnly = false;
|
||||
current.fieldsOrdered = GetFieldsOrdered();
|
||||
current.sortField = GetColFieldName( GetSortCol() );
|
||||
|
||||
if( GetSortCol() >= 0 && GetSortCol() < GetNumberCols() )
|
||||
current.sortField = GetColFieldName( GetSortCol() );
|
||||
|
||||
current.sortAsc = GetSortAsc();
|
||||
current.filterString = GetFilter();
|
||||
current.groupSymbols = GetGroupingEnabled();
|
||||
|
Loading…
x
Reference in New Issue
Block a user