From 0a69c35501cfb01d7e894b009a1a7a16541f45b3 Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Wed, 22 Jul 2015 18:06:32 +0300 Subject: Strip unit from Seabear sample interval value XSLT parsing treats this as numeric value, thus we need to strip out the " s" part. Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- qt-ui/divelogimportdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt-ui/divelogimportdialog.cpp b/qt-ui/divelogimportdialog.cpp index 59edd2c43..2bd72b001 100644 --- a/qt-ui/divelogimportdialog.cpp +++ b/qt-ui/divelogimportdialog.cpp @@ -398,7 +398,7 @@ void DiveLogImportDialog::loadFileContents(int value, whatChanged triggeredBy) while ((firstLine = f.readLine()).length() > 3 && !f.atEnd()) { if (firstLine.contains("//Log interval: ")) - delta = firstLine.remove(QString::fromLatin1("//Log interval: ")).trimmed(); + delta = firstLine.remove(QString::fromLatin1("//Log interval: ")).trimmed().remove(QString::fromLatin1(" s")); } /* -- cgit v1.2.3-70-g09d2