Fix static analyzer issue "The enumeration constant 'inactiveText' is used as a variable of a Boolean-type."
V768 The enumeration constant 'inactiveText' is used as a variable of a Boolean-type. wordstyledlg.cpp 438
This commit is contained in:
parent
bdcc386a3a
commit
81847599d0
@ -435,7 +435,7 @@ INT_PTR CALLBACK WordStyleDlg::run_dlgProc(UINT Message, WPARAM wParam, LPARAM l
|
||||
int tabColourIndex;
|
||||
if ((tabColourIndex = whichTabColourIndex()) != -1)
|
||||
{
|
||||
tabColourIndex = tabColourIndex == (TabBarPlus::inactiveText ? TabBarPlus::inactiveBg : tabColourIndex);
|
||||
tabColourIndex = (tabColourIndex == TabBarPlus::inactiveText ? TabBarPlus::inactiveBg : tabColourIndex);
|
||||
TabBarPlus::setColour(_pBgColour->getColour(), (TabBarPlus::tabColourIndex)tabColourIndex);
|
||||
}
|
||||
apply();
|
||||
|
Loading…
Reference in New Issue
Block a user