Bug 749527 - Remove text formats in clipboard when copying an image. r=ehsan.

This commit is contained in:
Brian R. Bondy 2012-04-30 13:08:16 -04:00
Родитель b1feec2eac
Коммит 4d163ec0b5
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -565,8 +565,8 @@ nsClipboardImageCommands::DoClipboardCommand(const char *aCommandName, nsIConten
return aEdit->CopyImage(nsIContentViewerEdit::COPY_IMAGE_TEXT);
if (!nsCRT::strcmp(sCopyImageContentsString, aCommandName))
return aEdit->CopyImage(nsIContentViewerEdit::COPY_IMAGE_DATA);
PRInt32 copyFlags = nsIContentViewerEdit::COPY_IMAGE_ALL;
PRInt32 copyFlags = nsIContentViewerEdit::COPY_IMAGE_DATA |
nsIContentViewerEdit::COPY_IMAGE_HTML;
if (aParams)
aParams->GetLongValue("imageCopy", &copyFlags);
return aEdit->CopyImage(copyFlags);