From ce5a3be7cadf4818dcf1cf9fb40cbe0928b6c4fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sun, 30 Jun 2019 23:18:30 +0200 Subject: [PATCH] Properly split the shield label --- src/map/IMG/lblfile.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/map/IMG/lblfile.cpp b/src/map/IMG/lblfile.cpp index 9cb8f4a4..5f797290 100644 --- a/src/map/IMG/lblfile.cpp +++ b/src/map/IMG/lblfile.cpp @@ -139,9 +139,12 @@ Label LBLFile::label8b(Handle &hdl, quint32 offset) const if (!c || c == 0x1d) break; - if ((c >= 0x1e && c <= 0x1f)) - bap->append(' '); - else if (c <= 0x07) { + if ((c >= 0x1e && c <= 0x1f)) { + if (bap == &shieldLabel) + bap = &label; + else + bap->append(' '); + } else if (c <= 0x07) { shieldType = (Label::Shield::Type)c; bap = &shieldLabel; } else if (bap == &shieldLabel && QChar(c).isSpace()) {