mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
API: add ZBarcode_Reset()
to clear and restore zint_symbol
to
its default state library: fix dealing with ZINT_WARN_HRT_TRUNCATED in `error_tag()` when `WARN_FAIL_ALL` set
This commit is contained in:
@ -209,7 +209,7 @@ namespace Zint {
|
||||
m_lastError.clear();
|
||||
|
||||
if (m_zintSymbol) {
|
||||
ZBarcode_Clear(m_zintSymbol);
|
||||
ZBarcode_Reset(m_zintSymbol);
|
||||
} else if (!(m_zintSymbol = ZBarcode_Create())) {
|
||||
m_error = ZINT_ERROR_MEMORY;
|
||||
m_lastError = QSL("Insufficient memory for Zint structure");
|
||||
|
Reference in New Issue
Block a user