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
pull/3860/head
Oleksandr Redko 2017-10-29 18:00:13 +02:00
parent bdcc386a3a
commit 81847599d0
1 changed files with 1 additions and 1 deletions

View File

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