1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +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) if (!c || c == 0x1d)
break; break;
if ((c >= 0x1e && c <= 0x1f)) if ((c >= 0x1e && c <= 0x1f)) {
bap->append(' '); if (bap == &shieldLabel)
else if (c <= 0x07) { bap = &label;
else
bap->append(' ');
} else if (c <= 0x07) {
shieldType = (Label::Shield::Type)c; shieldType = (Label::Shield::Type)c;
bap = &shieldLabel; bap = &shieldLabel;
} else if (bap == &shieldLabel && QChar(c).isSpace()) { } else if (bap == &shieldLabel && QChar(c).isSpace()) {