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