فهرست منبع

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