Skip to content

Commit 1537aef

Browse files
committed
bug in the Matrix fixed
1 parent 63a7a78 commit 1537aef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/ua/in/checkbox/api/client/CheckboxApiClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,9 @@ public byte[] getReceiptPngById(String id,int charsCount, int paperWidth)
267267
{
268268
StringJoiner parameters = new StringJoiner("&","?","");
269269
parameters.setEmptyValue("");
270-
if(charsCount >= MIN_CHARS_PNG_RECEIPT && MAX_CHARS_PNG_RECEIPT <= 100)
270+
if(charsCount >= MIN_CHARS_PNG_RECEIPT && charsCount <= MAX_CHARS_PNG_RECEIPT)
271271
parameters.add("width="+charsCount);
272-
if(paperWidth >= MIN_WIDTH_PNG_RECEIPT && MAX_WIDTH_PNG_RECEIPT <= 80)
272+
if(paperWidth >= MIN_WIDTH_PNG_RECEIPT && paperWidth <= MAX_WIDTH_PNG_RECEIPT)
273273
parameters.add("paper_width=" + paperWidth);
274274
return getForBytes(URI.create(apiPrefix + RECEIPTS_PATH + "/" + id + "/png" + parameters));
275275
}

0 commit comments

Comments
 (0)