aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2018-04-18 20:28:30 +0300
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2018-04-19 15:09:02 +0300
commit4186733740b1b73a762a9995bf36099051bf6dd5 (patch)
treef7d66b7106aecb39e755618f5573bb1ff55e22a3
parent529d4079337a49b132a3b264cd092f4b5c418628 (diff)
downloadsubsurface-4186733740b1b73a762a9995bf36099051bf6dd5.tar.gz
CSV import: fix setpoint (typo)
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
-rw-r--r--desktop-widgets/divelogimportdialog.cpp2
-rw-r--r--tests/testparse.cpp4
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);