Fix check for wxACC_STATE_SYSTEM_MARQUEED in accessibility code
wxACC_STATE_SYSTEM_INVISIBLE was checked twice, by mistake, while wxACC_STATE_SYSTEM_MARQUEED was never checked at all. Thanks to PVS-Studio for finding this issue (V581: The conditional expressions of the 'if' operators situated alongside each other are identical).
This commit is contained in:
parent
d5c46e87a6
commit
5d7726e3f1
@ -2037,8 +2037,8 @@ long wxConvertToWindowsState(long wxstate)
|
||||
if (wxstate & wxACC_STATE_SYSTEM_INVISIBLE)
|
||||
state |= STATE_SYSTEM_INVISIBLE;
|
||||
|
||||
if (wxstate & wxACC_STATE_SYSTEM_INVISIBLE)
|
||||
state |= STATE_SYSTEM_INVISIBLE;
|
||||
if (wxstate & wxACC_STATE_SYSTEM_MARQUEED)
|
||||
state |= STATE_SYSTEM_MARQUEED;
|
||||
|
||||
if (wxstate & wxACC_STATE_SYSTEM_MIXED)
|
||||
state |= STATE_SYSTEM_MIXED;
|
||||
|
Loading…
Reference in New Issue
Block a user