mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-04-19 19:59:11 +02:00
Compare commits
4 Commits
7184c691d3
...
e9a8112196
Author | SHA1 | Date | |
---|---|---|---|
e9a8112196 | |||
|
bca335d4b2 | ||
|
f3b1fa8eb7 | ||
|
fac377e746 |
@ -172,7 +172,7 @@
|
||||
<message>
|
||||
<location filename="../src/data/data.cpp" line="251"/>
|
||||
<source>VTK files</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>VTK dosieroj</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/data/data.cpp" line="252"/>
|
||||
|
@ -167,12 +167,12 @@
|
||||
<message>
|
||||
<location filename="../src/data/data.cpp" line="250"/>
|
||||
<source>70mai GPS log files</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>70mai GPS -lokitiedostot</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/data/data.cpp" line="251"/>
|
||||
<source>VTK files</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>VTK-tiedostot</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/data/data.cpp" line="252"/>
|
||||
|
@ -167,12 +167,12 @@
|
||||
<message>
|
||||
<location filename="../src/data/data.cpp" line="250"/>
|
||||
<source>70mai GPS log files</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>70mai GPS файлы</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/data/data.cpp" line="251"/>
|
||||
<source>VTK files</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>VTK файлы</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/data/data.cpp" line="252"/>
|
||||
@ -837,7 +837,7 @@
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="1126"/>
|
||||
<source>Error loading geo URI:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Ошибка загрузки гео URI:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/GUI/gui.cpp" line="1132"/>
|
||||
|
@ -180,12 +180,15 @@ bool VTKParser::parse(QFile *file, QList<TrackData> &tracks,
|
||||
_errorString = "";
|
||||
|
||||
while (true) {
|
||||
len = file->read((char*)&recordLen, 2);
|
||||
if (len < 0) {
|
||||
_errorString = "I/O error";
|
||||
return false;
|
||||
} else if (len == 0)
|
||||
break;
|
||||
if ((len = file->read((char*)&recordLen, sizeof(recordLen)))
|
||||
!= sizeof(recordLen)) {
|
||||
if (!len)
|
||||
break;
|
||||
else {
|
||||
_errorString = "Error reading VTK record size";
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
recordLen = qFromLittleEndian(recordLen);
|
||||
ba.resize(recordLen);
|
||||
|
Loading…
x
Reference in New Issue
Block a user