diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2015-07-22 18:06:32 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-07-22 11:22:05 -0700 |
commit | 0a69c35501cfb01d7e894b009a1a7a16541f45b3 (patch) | |
tree | 8175e48d1190a73ce5007e062984f041aad23f78 /qt-ui/divelogimportdialog.cpp | |
parent | b98396e10fe86bed9dd05169e389d6aee8b92ec6 (diff) | |
download | subsurface-0a69c35501cfb01d7e894b009a1a7a16541f45b3.tar.gz |
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 <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/divelogimportdialog.cpp')
-rw-r--r-- | qt-ui/divelogimportdialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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")); } /* |