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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user