Преглед изворни кода

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

Lucas CHOLLET пре 1 година
родитељ
комит
cefb2d65d8
1 измењених фајлова са 1 додато и 1 уклоњено
  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++;