mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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>
This commit is contained in:
parent
b98396e10f
commit
0a69c35501
1 changed files with 1 additions and 1 deletions
|
@ -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"));
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue