mirror of
https://github.com/riuson/lcd-image-converter.git
synced 2026-03-08 09:07:01 +01:00
Null reference from list #32743
This commit is contained in:
@@ -165,19 +165,22 @@ QString Parser::parseImagesTable(const QString &templateString,
|
||||
|
||||
ParsedImageData *data = images->value(key);
|
||||
|
||||
QString charCode = this->hexCode(key, encoding, useBom);
|
||||
if (data != NULL)
|
||||
{
|
||||
QString charCode = this->hexCode(key, encoding, useBom);
|
||||
|
||||
tags.importValues(data->tags());
|
||||
tags.setTagValue(Tags::OutputCharacterCode, charCode);
|
||||
if (it.hasNext())
|
||||
tags.setTagValue(Tags::OutputComma, ",");
|
||||
else
|
||||
tags.setTagValue(Tags::OutputComma, "");
|
||||
tags.importValues(data->tags());
|
||||
tags.setTagValue(Tags::OutputCharacterCode, charCode);
|
||||
if (it.hasNext())
|
||||
tags.setTagValue(Tags::OutputComma, ",");
|
||||
else
|
||||
tags.setTagValue(Tags::OutputComma, "");
|
||||
|
||||
tags.setTagValue(Tags::OutputCharacterText, FontHelper::escapeControlChars(key));
|
||||
tags.setTagValue(Tags::OutputCharacterText, FontHelper::escapeControlChars(key));
|
||||
|
||||
QString imageString = this->parse(templateString, tags, doc, images);
|
||||
result.append(imageString);
|
||||
QString imageString = this->parse(templateString, tags, doc, images);
|
||||
result.append(imageString);
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user