Skip to content

Commit 4f6a53c

Browse files
Compare to zero
1 parent e307da5 commit 4f6a53c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ImageSharp/Formats/Gif/GifEncoderCore.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ private void WriteGraphicalControlExtension(GifFrameMetadata? metadata, int tran
583583
if (metadata is null)
584584
{
585585
metadata = new();
586-
hasTransparency = transparencyIndex > -1;
586+
hasTransparency = transparencyIndex >= 0;
587587
}
588588
else
589589
{

0 commit comments

Comments
 (0)