small fix for bug23833 r= jfrancis

git-svn-id: svn://10.0.0.236/trunk@57744 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mjudge%netscape.com
2000-01-13 23:56:34 +00:00
parent f4100584c5
commit c252b5c37a
2 changed files with 4 additions and 2 deletions

View File

@@ -1584,7 +1584,6 @@ nsHTMLEditRules::WillAlign(nsIDOMSelection *aSelection,
*aCancel = PR_FALSE;
*aHandled = PR_FALSE;
nsAutoSelectionReset selectionResetter(aSelection);
PRBool outMakeEmpty;
res = ShouldMakeEmptyBlock(aSelection, alignType, &outMakeEmpty);
@@ -1611,6 +1610,8 @@ nsHTMLEditRules::WillAlign(nsIDOMSelection *aSelection,
return res;
}
nsAutoSelectionReset selectionResetter(aSelection);
// convert the selection ranges into "promoted" selection ranges:
// this basically just expands the range to include the immediate
// block parent, and then further expands to include any ancestors

View File

@@ -1584,7 +1584,6 @@ nsHTMLEditRules::WillAlign(nsIDOMSelection *aSelection,
*aCancel = PR_FALSE;
*aHandled = PR_FALSE;
nsAutoSelectionReset selectionResetter(aSelection);
PRBool outMakeEmpty;
res = ShouldMakeEmptyBlock(aSelection, alignType, &outMakeEmpty);
@@ -1611,6 +1610,8 @@ nsHTMLEditRules::WillAlign(nsIDOMSelection *aSelection,
return res;
}
nsAutoSelectionReset selectionResetter(aSelection);
// convert the selection ranges into "promoted" selection ranges:
// this basically just expands the range to include the immediate
// block parent, and then further expands to include any ancestors