fix for #71952. fix assertions when printing ab cards. r=shliang, sr=bienvenu, a=asa.

This commit is contained in:
sspitzer%netscape.com 2002-03-02 01:18:38 +00:00
Родитель 3198430487
Коммит 8326c62072
1 изменённых файлов: 5 добавлений и 3 удалений

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

@ -1076,8 +1076,10 @@ NS_IMETHODIMP nsAbCardProperty::ConvertToXMLPrintData(PRUnichar **aXMLSubstr)
// use ScanTXT to convert < > & to safe values.
nsXPIDLString safeText;
rv = conv->ScanTXT(generatedName.get(), mozITXTToHTMLConv::kEntities , getter_Copies(safeText));
NS_ENSURE_SUCCESS(rv,rv);
if (!generatedName.IsEmpty()) {
rv = conv->ScanTXT(generatedName.get(), mozITXTToHTMLConv::kEntities , getter_Copies(safeText));
NS_ENSURE_SUCCESS(rv,rv);
}
if (!safeText.IsEmpty())
xmlStr.Append(safeText.get());
@ -1309,7 +1311,7 @@ nsresult AppendLabel(nsAbCardProperty *aCard, AppendItem *aItem, mozITXTToHTMLCo
NS_ENSURE_SUCCESS(rv,rv);
if (attrValue.IsEmpty())
return NS_ERROR_FAILURE;
return NS_OK;
rv = bundle->GetStringFromName(NS_ConvertASCIItoUCS2(aItem->mLabel).get(), getter_Copies(label));
NS_ENSURE_SUCCESS(rv, rv);