mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1184665 - Remove a spammy editor warning
This commit is contained in:
parent
c8c028f108
commit
8c91b99061
@ -317,7 +317,9 @@ nsHTMLEditRules::BeforeEdit(EditAction action,
|
|||||||
nsRefPtr<Selection> selection = mHTMLEditor->GetSelection();
|
nsRefPtr<Selection> selection = mHTMLEditor->GetSelection();
|
||||||
|
|
||||||
// get the selection location
|
// get the selection location
|
||||||
NS_ENSURE_STATE(selection->RangeCount());
|
if (!selection->RangeCount()) {
|
||||||
|
return NS_ERROR_UNEXPECTED;
|
||||||
|
}
|
||||||
mRangeItem->startNode = selection->GetRangeAt(0)->GetStartParent();
|
mRangeItem->startNode = selection->GetRangeAt(0)->GetStartParent();
|
||||||
mRangeItem->startOffset = selection->GetRangeAt(0)->StartOffset();
|
mRangeItem->startOffset = selection->GetRangeAt(0)->StartOffset();
|
||||||
mRangeItem->endNode = selection->GetRangeAt(0)->GetEndParent();
|
mRangeItem->endNode = selection->GetRangeAt(0)->GetEndParent();
|
||||||
|
Loading…
Reference in New Issue
Block a user