LibGfx/CCITT: Always accept the end of line as the next changing element
This commit is contained in:
parent
780e230af5
commit
cefb2d65d8
Notes:
sideshowbarker
2024-07-17 01:55:29 +09:00
Author: https://github.com/LucasChollet Commit: https://github.com/SerenityOS/serenity/commit/cefb2d65d8 Pull-request: https://github.com/SerenityOS/serenity/pull/23487 Reviewed-by: https://github.com/nico ✅
1 changed files with 1 additions and 1 deletions
|
@ -436,7 +436,7 @@ ErrorOr<ReferenceLine> decode_single_ccitt_2d_line(BigEndianInputBitStream& inpu
|
|||
reference_line.take_first();
|
||||
continue;
|
||||
}
|
||||
if (change.color != current_color)
|
||||
if (change.color != current_color || change.column == image_width)
|
||||
next_change = change;
|
||||
else
|
||||
offset++;
|
||||
|
|
Loading…
Add table
Reference in a new issue