diff --git a/eeschema/dialogs/dialog_symbol_fields_table.cpp b/eeschema/dialogs/dialog_symbol_fields_table.cpp index c989e9c20b..6afd38c754 100644 --- a/eeschema/dialogs/dialog_symbol_fields_table.cpp +++ b/eeschema/dialogs/dialog_symbol_fields_table.cpp @@ -61,7 +61,7 @@ enum { - MYID_SELECT_FOOTPRINT = 991, // must be within GRID_TRICKS' enum range + MYID_SELECT_FOOTPRINT = GRIDTRICKS_FIRST_SHOWHIDE - 2, // must be within GRID_TRICKS' enum range MYID_SHOW_DATASHEET }; diff --git a/eeschema/fields_grid_table.cpp b/eeschema/fields_grid_table.cpp index 0d58b69a37..13cf012ed9 100644 --- a/eeschema/fields_grid_table.cpp +++ b/eeschema/fields_grid_table.cpp @@ -41,7 +41,7 @@ enum { - MYID_SELECT_FOOTPRINT = 991, // must be within GRID_TRICKS' enum range + MYID_SELECT_FOOTPRINT = GRIDTRICKS_FIRST_SHOWHIDE - 2, // must be within GRID_TRICKS' enum range MYID_SHOW_DATASHEET }; diff --git a/include/grid_tricks.h b/include/grid_tricks.h index 658ade0cb0..8ff9efb7b3 100644 --- a/include/grid_tricks.h +++ b/include/grid_tricks.h @@ -32,7 +32,7 @@ #include #include -#define GRIDTRICKS_MAX_COL 20 +#define GRIDTRICKS_MAX_COL 50 enum { @@ -43,7 +43,7 @@ enum GRIDTRICKS_ID_PASTE, GRIDTRICKS_ID_SELECT, - GRIDTRICKS_FIRST_SHOWHIDE = 979, // reserve IDs for show/hide-column-n + GRIDTRICKS_FIRST_SHOWHIDE = 949, // reserve IDs for show/hide-column-n GRIDTRICKS_LAST_ID = GRIDTRICKS_FIRST_SHOWHIDE + GRIDTRICKS_MAX_COL };