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.
This commit is contained in:
buster%netscape.com 1999-12-10 21:43:52 +00:00
parent de17407756
commit 121c8cdc07
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;

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;