diff --git a/include/tool/edit_table_tool_base.h b/include/tool/edit_table_tool_base.h index b2ac42f666..47c9b11714 100644 --- a/include/tool/edit_table_tool_base.h +++ b/include/tool/edit_table_tool_base.h @@ -327,6 +327,9 @@ protected: T_TABLE* table = static_cast( selection[0]->GetParent() ); std::vector deleted; + for( T_TABLECELL* cell : table->GetCells() ) + cell->ClearFlags( STRUCT_DELETED ); + for( int row = 0; row < table->GetRowCount(); ++row ) { bool deleteRow = false; @@ -401,6 +404,9 @@ protected: T_TABLE* table = static_cast( selection[0]->GetParent() ); std::vector deleted; + for( T_TABLECELL* cell : table->GetCells() ) + cell->ClearFlags( STRUCT_DELETED ); + for( int col = 0; col < table->GetColCount(); ++col ) { bool deleteColumn = false;