Skip to content

Commit 4f6a53c

Browse files
Compare to zero
1 parent e307da5 commit 4f6a53c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)