mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 16:22:00 +00:00
api change for editor changing null strings to empty nsStrings 66318
This commit is contained in:
parent
e96ac1c564
commit
da2106f186
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user