removed unneeded test for pal!=NULL in ConvertToImage() (coverity checker CID 10)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37886 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -142,8 +142,6 @@ bool wxGIFDecoder::ConvertToImage(wxImage *image) const
|
|||||||
image->SetMask(false);
|
image->SetMask(false);
|
||||||
|
|
||||||
#if wxUSE_PALETTE
|
#if wxUSE_PALETTE
|
||||||
if (pal)
|
|
||||||
{
|
|
||||||
unsigned char r[256];
|
unsigned char r[256];
|
||||||
unsigned char g[256];
|
unsigned char g[256];
|
||||||
unsigned char b[256];
|
unsigned char b[256];
|
||||||
@@ -156,7 +154,6 @@ bool wxGIFDecoder::ConvertToImage(wxImage *image) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
image->SetPalette(wxPalette(256, r, g, b));
|
image->SetPalette(wxPalette(256, r, g, b));
|
||||||
}
|
|
||||||
#endif // wxUSE_PALETTE
|
#endif // wxUSE_PALETTE
|
||||||
|
|
||||||
/* copy image data */
|
/* copy image data */
|
||||||
|
Reference in New Issue
Block a user