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:
Ilya Ivanov 2017-04-27 15:06:56 +03:00 committed by Vadim Zeitlin
parent d5c46e87a6
commit 5d7726e3f1

View File

@ -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;