mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
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:
parent
de17407756
commit
121c8cdc07
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user