kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #20168
[PATCH] pin table: Allow ungrouping
Hi,
this allows to undo the grouping in the pin table, by right clicking on the
column header of the currently active grouping column -- this allows you to
go back to a fully flat table.
Simon
---
eeschema/dialogs/dialog_lib_edit_pin_table.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/eeschema/dialogs/dialog_lib_edit_pin_table.cpp b/eeschema/dialogs/dialog_lib_edit_pin_table.cpp
index 67e3bc5..a729340 100644
--- a/eeschema/dialogs/dialog_lib_edit_pin_table.cpp
+++ b/eeschema/dialogs/dialog_lib_edit_pin_table.cpp
@@ -424,9 +424,9 @@ int DIALOG_LIB_EDIT_PIN_TABLE::DataViewModel::Compare( const wxDataViewItem& aIt
void DIALOG_LIB_EDIT_PIN_TABLE::DataViewModel::SetGroupingColumn( int aCol )
{
if( m_GroupingColumn == aCol )
- return;
-
- m_GroupingColumn = aCol;
+ m_GroupingColumn = NONE;
+ else
+ m_GroupingColumn = aCol;
Cleared();
CalculateGrouping();