Fix export measurement separator to CSV.
This commit is contained in:
parent
8b354dcae4
commit
7beb234f22
|
@ -3,6 +3,7 @@
|
||||||
- Fix visualization for tool Point from circle and tangent.
|
- Fix visualization for tool Point from circle and tangent.
|
||||||
- Fix loading background image.
|
- Fix loading background image.
|
||||||
- [smart-pattern/valentina#187] Puzzle: message "Invalid version: Max supported version 0.1.2" when opening 0.1.1 file in Val 0.7.52.
|
- [smart-pattern/valentina#187] Puzzle: message "Invalid version: Max supported version 0.1.2" when opening 0.1.1 file in Val 0.7.52.
|
||||||
|
- Fix export measurement separator to CSV.
|
||||||
|
|
||||||
# Valentina 0.7.52 September 12, 2022
|
# Valentina 0.7.52 September 12, 2022
|
||||||
- Fix crash when default locale is ru.
|
- Fix crash when default locale is ru.
|
||||||
|
|
|
@ -816,8 +816,12 @@ void TMainWindow::ExportToCSVData(const QString &fileName, bool withHeader, int
|
||||||
{
|
{
|
||||||
if (not ui->tableWidget->isColumnHidden(column))
|
if (not ui->tableWidget->isColumnHidden(column))
|
||||||
{
|
{
|
||||||
QTableWidgetItem *header = ui->tableWidget->horizontalHeaderItem(column);
|
QString text;
|
||||||
csv.setHeaderText(colCount, header->text());
|
if (QTableWidgetItem *header = ui->tableWidget->horizontalHeaderItem(column))
|
||||||
|
{
|
||||||
|
text = header->text();
|
||||||
|
}
|
||||||
|
csv.setHeaderText(colCount, text);
|
||||||
++colCount;
|
++colCount;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -832,8 +836,12 @@ void TMainWindow::ExportToCSVData(const QString &fileName, bool withHeader, int
|
||||||
{
|
{
|
||||||
if (not ui->tableWidget->isColumnHidden(column))
|
if (not ui->tableWidget->isColumnHidden(column))
|
||||||
{
|
{
|
||||||
QTableWidgetItem *item = ui->tableWidget->item(row, column);
|
QString text;
|
||||||
csv.setText(row, colCount, item->text());
|
if(QTableWidgetItem *item = ui->tableWidget->item(row, column))
|
||||||
|
{
|
||||||
|
text = item->text();
|
||||||
|
}
|
||||||
|
csv.setText(row, colCount, text);
|
||||||
++colCount;
|
++colCount;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user