diff --git a/mozilla/editor/base/nsEditor.cpp b/mozilla/editor/base/nsEditor.cpp index 15e723235f6..71fbedc61e1 100644 --- a/mozilla/editor/base/nsEditor.cpp +++ b/mozilla/editor/base/nsEditor.cpp @@ -480,7 +480,7 @@ NS_IMETHODIMP nsEditor::CanUndo(PRBool &aIsEnabled, PRBool &aCanUndo) { PRInt32 numTxns=0; mTxnMgr->GetNumberOfUndoItems(&numTxns); - aCanUndo = ((PRBool)(0==numTxns)); + aCanUndo = ((PRBool)(0!=numTxns)); } else { aCanUndo = PR_FALSE; @@ -526,7 +526,7 @@ NS_IMETHODIMP nsEditor::CanRedo(PRBool &aIsEnabled, PRBool &aCanRedo) { PRInt32 numTxns=0; mTxnMgr->GetNumberOfRedoItems(&numTxns); - aCanRedo = ((PRBool)(0==numTxns)); + aCanRedo = ((PRBool)(0!=numTxns)); } else { aCanRedo = PR_FALSE; diff --git a/mozilla/editor/libeditor/base/nsEditor.cpp b/mozilla/editor/libeditor/base/nsEditor.cpp index 15e723235f6..71fbedc61e1 100644 --- a/mozilla/editor/libeditor/base/nsEditor.cpp +++ b/mozilla/editor/libeditor/base/nsEditor.cpp @@ -480,7 +480,7 @@ NS_IMETHODIMP nsEditor::CanUndo(PRBool &aIsEnabled, PRBool &aCanUndo) { PRInt32 numTxns=0; mTxnMgr->GetNumberOfUndoItems(&numTxns); - aCanUndo = ((PRBool)(0==numTxns)); + aCanUndo = ((PRBool)(0!=numTxns)); } else { aCanUndo = PR_FALSE; @@ -526,7 +526,7 @@ NS_IMETHODIMP nsEditor::CanRedo(PRBool &aIsEnabled, PRBool &aCanRedo) { PRInt32 numTxns=0; mTxnMgr->GetNumberOfRedoItems(&numTxns); - aCanRedo = ((PRBool)(0==numTxns)); + aCanRedo = ((PRBool)(0!=numTxns)); } else { aCanRedo = PR_FALSE;