Kaynağa Gözat

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

Lucas CHOLLET 1 yıl önce
ebeveyn
işleme
cefb2d65d8

+ 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();
                 reference_line.take_first();
                 continue;
                 continue;
             }
             }
-            if (change.color != current_color)
+            if (change.color != current_color || change.column == image_width)
                 next_change = change;
                 next_change = change;
             else
             else
                 offset++;
                 offset++;