From 8354ebec04ec31f46e112e2238b992a2df74c968 Mon Sep 17 00:00:00 2001 From: "buster%netscape.com" Date: Fri, 10 Dec 1999 21:43:52 +0000 Subject: [PATCH] bug 21378 r=rods a=chofmann changed CanUndo and CanRedo to return the right value. They were returning the opposite of what they ought to have returned. git-svn-id: svn://10.0.0.236/trunk@55865 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/editor/base/nsEditor.cpp | 4 ++-- mozilla/editor/libeditor/base/nsEditor.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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;