Fix Export to CSV bug. Header have wrong title.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-01-31 14:31:34 +02:00
parent c7256dbe0c
commit 90fe5d379e

View File

@ -679,7 +679,7 @@ void TMainWindow::ExportToCSVData(const QString &fileName, bool withHeader, int
{
if (not ui->tableWidget->isColumnHidden(column))
{
QTableWidgetItem *header = ui->tableWidget->horizontalHeaderItem(colCount);
QTableWidgetItem *header = ui->tableWidget->horizontalHeaderItem(column);
csv.setHeaderText(colCount, header->text());
++colCount;
}