Showing
3 changed files
with
9 additions
and
7 deletions
| @@ -68,16 +68,14 @@ class Ascii85Encoder extends Converter<List<int>, List<int>> { | @@ -68,16 +68,14 @@ class Ascii85Encoder extends Converter<List<int>, List<int>> { | ||
| 68 | v ~/= 85; | 68 | v ~/= 85; |
| 69 | } | 69 | } |
| 70 | 70 | ||
| 71 | - // If input was short, discard the low destination bytes. | ||
| 72 | - int m = 5; | ||
| 73 | if (input.length - s < 4) { | 71 | if (input.length - s < 4) { |
| 74 | - m -= 4 - (input.length - s); | 72 | + // If input was short, discard the low destination bytes. |
| 73 | + b += input.length - s + 1; | ||
| 75 | break; | 74 | break; |
| 76 | - } else { | ||
| 77 | - s += 4; | ||
| 78 | } | 75 | } |
| 79 | 76 | ||
| 80 | - b += m; | 77 | + s += 4; |
| 78 | + b += 5; | ||
| 81 | } | 79 | } |
| 82 | 80 | ||
| 83 | buffer[b] = 0x7e; | 81 | buffer[b] = 0x7e; |
| @@ -4,7 +4,7 @@ description: A pdf producer for Dart. It can create pdf files for both web or fl | @@ -4,7 +4,7 @@ description: A pdf producer for Dart. It can create pdf files for both web or fl | ||
| 4 | homepage: https://github.com/DavBfr/dart_pdf/tree/master/pdf | 4 | homepage: https://github.com/DavBfr/dart_pdf/tree/master/pdf |
| 5 | repository: https://github.com/DavBfr/dart_pdf | 5 | repository: https://github.com/DavBfr/dart_pdf |
| 6 | issue_tracker: https://github.com/DavBfr/dart_pdf/issues | 6 | issue_tracker: https://github.com/DavBfr/dart_pdf/issues |
| 7 | -version: 1.3.18 | 7 | +version: 1.3.19 |
| 8 | 8 | ||
| 9 | environment: | 9 | environment: |
| 10 | sdk: ">=2.1.0 <3.0.0" | 10 | sdk: ">=2.1.0 <3.0.0" |
-
Please register or login to post a comment