Fix for the crasher part of 7801: don't use nsAutoSelectionReset in InsertList

git-svn-id: svn://10.0.0.236/trunk@35501 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
akkana%netscape.com 1999-06-15 23:24:24 +00:00
parent 33bd604dc3
commit e12a8361e4
2 changed files with 6 additions and 2 deletions

View File

@ -1727,7 +1727,9 @@ nsHTMLEditor::InsertList(const nsString& aListType)
// Find out if the selection is collapsed:
if (NS_FAILED(res) || !selection) return res;
nsAutoSelectionReset selectionResetter(selection);
// Using nsAutoSelectionReset isn't appropriate here, can cause a crash
// http://bugzilla.mozilla.org/show_bug.cgi?id=7801
// nsAutoSelectionReset selectionResetter(selection);
PRBool isCollapsed;
res = selection->GetIsCollapsed(&isCollapsed);

View File

@ -1727,7 +1727,9 @@ nsHTMLEditor::InsertList(const nsString& aListType)
// Find out if the selection is collapsed:
if (NS_FAILED(res) || !selection) return res;
nsAutoSelectionReset selectionResetter(selection);
// Using nsAutoSelectionReset isn't appropriate here, can cause a crash
// http://bugzilla.mozilla.org/show_bug.cgi?id=7801
// nsAutoSelectionReset selectionResetter(selection);
PRBool isCollapsed;
res = selection->GetIsCollapsed(&isCollapsed);