From 4186733740b1b73a762a9995bf36099051bf6dd5 Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Wed, 18 Apr 2018 20:28:30 +0300 Subject: CSV import: fix setpoint (typo) Signed-off-by: Miika Turkia --- desktop-widgets/divelogimportdialog.cpp | 2 +- tests/testparse.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/desktop-widgets/divelogimportdialog.cpp b/desktop-widgets/divelogimportdialog.cpp index dc68865bb..f525ec436 100644 --- a/desktop-widgets/divelogimportdialog.cpp +++ b/desktop-widgets/divelogimportdialog.cpp @@ -780,7 +780,7 @@ int DiveLogImportDialog::setup_csv_params(QStringList r, char **params, int pnr) params[pnr++] = intdup(r.indexOf(tr("Sample stopdepth"))); params[pnr++] = strdup("pressureField"); params[pnr++] = intdup(r.indexOf(tr("Sample pressure"))); - params[pnr++] = strdup("setpointFiend"); + params[pnr++] = strdup("setpointField"); params[pnr++] = intdup(r.indexOf(tr("Sample setpoint"))); params[pnr++] = strdup("separatorIndex"); params[pnr++] = intdup(ui->CSVSeparator->currentIndex()); diff --git a/tests/testparse.cpp b/tests/testparse.cpp index b7ee086fa..503e48aeb 100644 --- a/tests/testparse.cpp +++ b/tests/testparse.cpp @@ -203,7 +203,7 @@ void TestParse::testParseHUDC() params[pnr++] = intdup(-1); params[pnr++] = strdup("pressureField"); params[pnr++] = intdup(-1); - params[pnr++] = strdup("setpointFiend"); + params[pnr++] = strdup("setpointField"); params[pnr++] = intdup(-1); params[pnr++] = strdup("separatorIndex"); params[pnr++] = intdup(2); @@ -491,7 +491,7 @@ void TestParse::parseDL7() params[pnr++] = intdup(-1); params[pnr++] = strdup("pressureField"); params[pnr++] = intdup(-1); - params[pnr++] = strdup("setpointFiend"); + params[pnr++] = strdup("setpointField"); params[pnr++] = intdup(-1); params[pnr++] = strdup("separatorIndex"); params[pnr++] = intdup(3); -- cgit v1.2.3-70-g09d2