Fixed template number: cannot be 0

This commit is contained in:
Gerhard Hoffmann 2023-04-13 13:54:15 +02:00
parent ef48301dad
commit 60c48588b0

View File

@ -415,7 +415,7 @@ bool hwapi::dc_updatePrinterTemplate(enum FileTypeJson type,
int nrOfTemplate,
QString const &fname) const {
if ((type == FileTypeJson::PRINTER) &&
(nrOfTemplate >= 0 && nrOfTemplate <= 32)) {
(nrOfTemplate >= 1 && nrOfTemplate <= 32)) {
int nTry = 50;
while (!sys_ready4sending()) { // wait max. 5 seconds