api change for editor changing null strings to empty nsStrings 66318

This commit is contained in:
mjudge%netscape.com 2001-04-07 00:44:59 +00:00
parent e96ac1c564
commit da2106f186

View File

@ -1095,14 +1095,14 @@ HRESULT CMozillaBrowser::OnEditorCommand(DWORD nCmdID)
PRBool bAll = PR_TRUE;
// Set or remove
pHtmlEditor->GetInlineProperty(pInlineProperty, nsnull, nsnull, bFirst, bAny, bAll);
pHtmlEditor->GetInlineProperty(pInlineProperty, nsString(), nsString(), &bFirst, &bAny, &bAll);
if (bAny)
{
pHtmlEditor->RemoveInlineProperty(pInlineProperty, nsnull);
pHtmlEditor->RemoveInlineProperty(pInlineProperty, nsString());
}
else
{
pHtmlEditor->SetInlineProperty(pInlineProperty, nsnull, nsnull);
pHtmlEditor->SetInlineProperty(pInlineProperty, nsString(), nsString());
}
}