Fix hotaix bustage, also see bug 67961.

This commit is contained in:
disttsc%bart.nl 2001-02-07 13:02:11 +00:00
Родитель de260002b2
Коммит 5b8b7ee7e1
2 изменённых файлов: 2 добавлений и 2 удалений

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

@ -1062,7 +1062,7 @@ nsHTMLCopyEncoder::SetSelection(nsISelection* aSelection)
nsCOMPtr<nsIDOMElement> bodyElem = do_QueryInterface(selContent); nsCOMPtr<nsIDOMElement> bodyElem = do_QueryInterface(selContent);
nsAutoString wsVal; nsAutoString wsVal;
rv = bodyElem->GetAttribute(NS_LITERAL_STRING("white-space"), wsVal); rv = bodyElem->GetAttribute(NS_LITERAL_STRING("white-space"), wsVal);
if (NS_SUCCEEDED(rv) && (kNotFound != wsVal.Find(NS_LITERAL_STRING("-moz-pre-wrap")))) if (NS_SUCCEEDED(rv) && (kNotFound != wsVal.Find(NS_LITERAL_STRING("-moz-pre-wrap").get())))
{ {
mIsTextWidget = PR_TRUE; mIsTextWidget = PR_TRUE;
break; break;

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

@ -1062,7 +1062,7 @@ nsHTMLCopyEncoder::SetSelection(nsISelection* aSelection)
nsCOMPtr<nsIDOMElement> bodyElem = do_QueryInterface(selContent); nsCOMPtr<nsIDOMElement> bodyElem = do_QueryInterface(selContent);
nsAutoString wsVal; nsAutoString wsVal;
rv = bodyElem->GetAttribute(NS_LITERAL_STRING("white-space"), wsVal); rv = bodyElem->GetAttribute(NS_LITERAL_STRING("white-space"), wsVal);
if (NS_SUCCEEDED(rv) && (kNotFound != wsVal.Find(NS_LITERAL_STRING("-moz-pre-wrap")))) if (NS_SUCCEEDED(rv) && (kNotFound != wsVal.Find(NS_LITERAL_STRING("-moz-pre-wrap").get())))
{ {
mIsTextWidget = PR_TRUE; mIsTextWidget = PR_TRUE;
break; break;