This commit is contained in:
buster%netscape.com 1999-09-17 20:17:22 +00:00
Родитель 15d1901d7b
Коммит 420962b484
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -417,7 +417,7 @@ nsTextEditRules::CreateStyleForInsertText(nsIDOMSelection *aSelection, TypeInSta
else // we have no selection, so insert a style tag in the body else // we have no selection, so insert a style tag in the body
{ {
nsCOMPtr<nsIDOMElement> bodyElement; nsCOMPtr<nsIDOMElement> bodyElement;
nsresult res = mEditor->GetBodyElement(getter_AddRefs(bodyElement)); res = mEditor->GetBodyElement(getter_AddRefs(bodyElement));
if (NS_FAILED(res)) return res; if (NS_FAILED(res)) return res;
if (!bodyElement) return NS_ERROR_NULL_POINTER; if (!bodyElement) return NS_ERROR_NULL_POINTER;

Просмотреть файл

@ -417,7 +417,7 @@ nsTextEditRules::CreateStyleForInsertText(nsIDOMSelection *aSelection, TypeInSta
else // we have no selection, so insert a style tag in the body else // we have no selection, so insert a style tag in the body
{ {
nsCOMPtr<nsIDOMElement> bodyElement; nsCOMPtr<nsIDOMElement> bodyElement;
nsresult res = mEditor->GetBodyElement(getter_AddRefs(bodyElement)); res = mEditor->GetBodyElement(getter_AddRefs(bodyElement));
if (NS_FAILED(res)) return res; if (NS_FAILED(res)) return res;
if (!bodyElement) return NS_ERROR_NULL_POINTER; if (!bodyElement) return NS_ERROR_NULL_POINTER;