mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-16 12:52:46 +00:00
LibPDF: In Type0::initialize(), move variable increment next to cause
No behavior change.
This commit is contained in:
parent
fc9b2440bd
commit
ef5d7b685d
|
@ -293,10 +293,10 @@ PDFErrorOr<void> Type0Font::initialize(Document* document, NonnullRefPtr<DictObj
|
|||
auto first_code = pending_code.release_value();
|
||||
auto last_code = value.to_int();
|
||||
auto width = widths_array->at(i + 1).to_int();
|
||||
i++;
|
||||
|
||||
for (u16 code = first_code; code <= last_code; code++)
|
||||
widths.set(code, width);
|
||||
|
||||
i++;
|
||||
} else {
|
||||
auto array = TRY(document->resolve_to<ArrayObject>(value));
|
||||
auto code = pending_code.release_value();
|
||||
|
|
Loading…
Reference in a new issue