Resolve further error message and warning idiosyncrasies

This commit is contained in:
Robin Stuart
2018-01-21 18:10:42 +00:00
parent baf56daa17
commit 0d4af7a462
2 changed files with 33 additions and 8 deletions

View File

@ -279,7 +279,7 @@ namespace Zint {
strcpy(m_zintSymbol->fgcolour, fgcol.data());
strcpy(m_zintSymbol->bgcolour, bgcol.data());
m_error = ZBarcode_Encode_and_Print(m_zintSymbol, (unsigned char*) bstr.data(), bstr.length(), 0);
if (m_error != 0) {
if (m_error >= 5) {
m_lastError = m_zintSymbol->errtxt;
return false;
} else {