fix(label): Drop token close character from suffix substring

Refs #305
This commit is contained in:
Michael Carlberg 2017-01-09 15:23:50 +01:00
parent eeaad512a9
commit 3722ac1617

View File

@ -201,7 +201,9 @@ namespace drawtypes {
// find suffix delimiter // find suffix delimiter
if ((pos = token_str.find(':', pos + 1)) != string::npos) { if ((pos = token_str.find(':', pos + 1)) != string::npos) {
token.suffix = token_str.substr(pos + 1, end - pos - 1); token.suffix = token_str.substr(pos + 1);
// remove closing token %
token.suffix.erase(token.suffix.size() - 1);
} }
} }