File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -996,9 +996,9 @@ MagickExport MagickBooleanType SetImageAlphaChannel(Image *image,
996
996
for (i = 0 ; i < (ssize_t ) GetPixelChannels (image ); i ++ )
997
997
{
998
998
PixelChannel channel = GetPixelChannelChannel (image ,i );
999
+ PixelTrait traits = GetPixelChannelTraits (image ,channel );
999
1000
if (channel == AlphaPixelChannel )
1000
1001
continue ;
1001
- PixelTrait traits = GetPixelChannelTraits (image ,channel );
1002
1002
if ((traits & UpdatePixelTrait ) == 0 )
1003
1003
continue ;
1004
1004
q [i ]= ClampToQuantum (gamma * q [i ]);
@@ -1130,9 +1130,9 @@ MagickExport MagickBooleanType SetImageAlphaChannel(Image *image,
1130
1130
for (i = 0 ; i < (ssize_t ) GetPixelChannels (image ); i ++ )
1131
1131
{
1132
1132
PixelChannel channel = GetPixelChannelChannel (image ,i );
1133
+ PixelTrait traits = GetPixelChannelTraits (image ,channel );
1133
1134
if (channel == AlphaPixelChannel )
1134
1135
continue ;
1135
- PixelTrait traits = GetPixelChannelTraits (image ,channel );
1136
1136
if ((traits & UpdatePixelTrait ) == 0 )
1137
1137
continue ;
1138
1138
q [i ]= ClampToQuantum (gamma * q [i ]);
You can’t perform that action at this time.
0 commit comments