Fix harmless warning about shadowed variable in image sample
Don't redeclare a previously declared variable, just reuse the same one.
This commit is contained in:
@@ -342,12 +342,12 @@ private:
|
|||||||
wxT("compression = 1, memory = 9, strategy = 2, filter = 5"),
|
wxT("compression = 1, memory = 9, strategy = 2, filter = 5"),
|
||||||
};
|
};
|
||||||
|
|
||||||
int sel = wxGetSingleChoiceIndex(wxT("Select compression option (Cancel to use default)\n"),
|
sel = wxGetSingleChoiceIndex(wxT("Select compression option (Cancel to use default)\n"),
|
||||||
wxT("PNG Compression Options"),
|
wxT("PNG Compression Options"),
|
||||||
WXSIZEOF(compressionChoices),
|
WXSIZEOF(compressionChoices),
|
||||||
compressionChoices,
|
compressionChoices,
|
||||||
this);
|
this);
|
||||||
if (sel != -1)
|
if ( sel != -1 )
|
||||||
{
|
{
|
||||||
const int zc[] = {9, 9, 9, 9, 1, 1, 9, 9, 9, 9, 1, 1};
|
const int zc[] = {9, 9, 9, 9, 1, 1, 9, 9, 9, 9, 1, 1};
|
||||||
const int zm[] = {8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9};
|
const int zm[] = {8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9};
|
||||||
|
Reference in New Issue
Block a user