Bug 78941. Null-check to handle view giving back a null selection. r=varga@utcru.sk, sr=hyatt

git-svn-id: svn://10.0.0.236/trunk@94073 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
waterson%netscape.com 2001-05-06 00:02:27 +00:00
parent a93271bdc4
commit cc1f4dc1ef
2 changed files with 4 additions and 2 deletions

View File

@ -848,7 +848,8 @@ NS_IMETHODIMP nsOutlinerBodyFrame::RowCountChanged(PRInt32 aIndex, PRInt32 aCoun
// Adjust our selection.
nsCOMPtr<nsIOutlinerSelection> sel;
mView->GetSelection(getter_AddRefs(sel));
sel->AdjustSelection(aIndex, aCount);
if (sel)
sel->AdjustSelection(aIndex, aCount);
PRInt32 last;
GetLastVisibleRow(&last);

View File

@ -848,7 +848,8 @@ NS_IMETHODIMP nsOutlinerBodyFrame::RowCountChanged(PRInt32 aIndex, PRInt32 aCoun
// Adjust our selection.
nsCOMPtr<nsIOutlinerSelection> sel;
mView->GetSelection(getter_AddRefs(sel));
sel->AdjustSelection(aIndex, aCount);
if (sel)
sel->AdjustSelection(aIndex, aCount);
PRInt32 last;
GetLastVisibleRow(&last);