missed a |= instead of just a ==. The compared variable is a bitflag not just a number.

git-svn-id: svn://10.0.0.236/trunk@54333 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mjudge%netscape.com
1999-11-23 22:49:44 +00:00
parent 54b96b5a21
commit 93087b4bea
2 changed files with 2 additions and 2 deletions

View File

@@ -601,7 +601,7 @@ nsFrame::DisplaySelection(nsIPresContext& aPresContext, PRBool isOkToTurnOn)
mParent->GetStyleData(eStyleStruct_UserInterface, (const nsStyleStruct*&)userinterface);
}
}
if (userinterface->mUserSelect == NS_STYLE_USER_SELECT_NONE) {
if (userinterface->mUserSelect != NS_STYLE_USER_SELECT_NONE) {
result = PR_FALSE;
isOkToTurnOn = PR_FALSE;
}

View File

@@ -601,7 +601,7 @@ nsFrame::DisplaySelection(nsIPresContext& aPresContext, PRBool isOkToTurnOn)
mParent->GetStyleData(eStyleStruct_UserInterface, (const nsStyleStruct*&)userinterface);
}
}
if (userinterface->mUserSelect == NS_STYLE_USER_SELECT_NONE) {
if (userinterface->mUserSelect != NS_STYLE_USER_SELECT_NONE) {
result = PR_FALSE;
isOkToTurnOn = PR_FALSE;
}