GIFTranslator: Combine nested if statements
...into single conditional
This commit is contained in:
parent
78bfaa98e1
commit
9d41bc18bb
@ -337,8 +337,7 @@ GIFView::MessageReceived(BMessage* message)
|
|||||||
if (fColorCountMF->IsEnabled()) {
|
if (fColorCountMF->IsEnabled()) {
|
||||||
int32 sizeInBits;
|
int32 sizeInBits;
|
||||||
if (message->FindInt32(GIF_SETTING_PALETTE_SIZE, &sizeInBits)
|
if (message->FindInt32(GIF_SETTING_PALETTE_SIZE, &sizeInBits)
|
||||||
>= B_OK) {
|
>= B_OK && sizeInBits > 0 && sizeInBits <= 8) {
|
||||||
if (sizeInBits > 0 && sizeInBits <= 8)
|
|
||||||
fSettings->SetGetInt32(GIF_SETTING_PALETTE_SIZE,
|
fSettings->SetGetInt32(GIF_SETTING_PALETTE_SIZE,
|
||||||
&sizeInBits);
|
&sizeInBits);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user