Don't copy (or cut) hidden columns.

Fixes https://gitlab.com/kicad/code/kicad/issues/1911
This commit is contained in:
Jeff Young 2021-10-26 15:54:31 +01:00
parent f724fe7eff
commit 1fbb7f17c7
1 changed files with 3 additions and 0 deletions

View File

@ -661,6 +661,9 @@ void GRID_TRICKS::cutcopy( bool doCopy, bool doDelete )
{ {
for( int col = m_sel_col_start; col < m_sel_col_start + m_sel_col_count; ++col ) for( int col = m_sel_col_start; col < m_sel_col_start + m_sel_col_count; ++col )
{ {
if( !m_grid->IsColShown( col ) )
continue;
txt += tbl->GetValue( row, col ); txt += tbl->GetValue( row, col );
if( col < m_sel_col_start + m_sel_col_count - 1 ) // that was not last column if( col < m_sel_col_start + m_sel_col_count - 1 ) // that was not last column