1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 11:45:53 +01:00

Properly split the shield label

This commit is contained in:
Martin Tůma 2019-06-30 23:18:30 +02:00
parent db0df92933
commit ce5a3be7ca

View File

@ -139,9 +139,12 @@ Label LBLFile::label8b(Handle &hdl, quint32 offset) const
if (!c || c == 0x1d)
break;
if ((c >= 0x1e && c <= 0x1f))
if ((c >= 0x1e && c <= 0x1f)) {
if (bap == &shieldLabel)
bap = &label;
else
bap->append(' ');
else if (c <= 0x07) {
} else if (c <= 0x07) {
shieldType = (Label::Shield::Type)c;
bap = &shieldLabel;
} else if (bap == &shieldLabel && QChar(c).isSpace()) {