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 438pull/3860/head
parent
bdcc386a3a
commit
81847599d0
|
@ -435,7 +435,7 @@ INT_PTR CALLBACK WordStyleDlg::run_dlgProc(UINT Message, WPARAM wParam, LPARAM l
|
||||||
int tabColourIndex;
|
int tabColourIndex;
|
||||||
if ((tabColourIndex = whichTabColourIndex()) != -1)
|
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);
|
TabBarPlus::setColour(_pBgColour->getColour(), (TabBarPlus::tabColourIndex)tabColourIndex);
|
||||||
}
|
}
|
||||||
apply();
|
apply();
|
||||||
|
|
Loading…
Reference in New Issue