Browse Source

LibGfx/CCITT: Always accept the end of line as the next changing element

Lucas CHOLLET 1 năm trước cách đây
mục cha
commit
cefb2d65d8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Userland/Libraries/LibGfx/ImageFormats/CCITTDecoder.cpp

+ 1 - 1
Userland/Libraries/LibGfx/ImageFormats/CCITTDecoder.cpp

@@ -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++;