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:
parent
a93271bdc4
commit
cc1f4dc1ef
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user