r=mkaply, a=blizzard
Code from jkobal/Dainis Jonitis to fix private clipboard formats
This commit is contained in:
mkaply%us.ibm.com 2000-11-07 22:31:41 +00:00
parent bd8c574638
commit 2a9da7b0a3

View File

@ -330,14 +330,8 @@ ULONG nsClipboard::GetFormatID(const char *aMimeStr, FormatRecord **pFmtRec)
}
if (!ulFormat) {
if ( strstr(pszFmt, "text") == NULL) {
ulFormat = gModuleData.GetAtom(pszFmt);
*pFmtRec = NULL;
}
else {
ulFormat = records[0].ulClipboardFmt;
*pFmtRec = &records[0];
}
ulFormat = gModuleData.GetAtom(pszFmt);
*pFmtRec = NULL;
}
NS_ASSERTION(ulFormat, "Clipboard besieged by unknown mimetype");