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:
committed by
Vadim Zeitlin
parent
3fa996453f
commit
ef227d669d
@@ -1937,8 +1937,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;
|
||||
|
Reference in New Issue
Block a user