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
This commit is contained in:
buster%netscape.com
1999-12-10 21:43:52 +00:00
parent 0ecef6293a
commit 8354ebec04
2 changed files with 4 additions and 4 deletions

View File

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