summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuigi Iucci <luigi.iucci@collabora.com>2023-06-21 10:16:16 +0200
committerHenry Castro <hcastro@collabora.com>2023-06-26 16:40:14 +0200
commit46fa17b70db0d543518dde52908f46c85838ac12 (patch)
treea910c41564fd9bb8d1edb43f55a21a0cd556d0a5
parent424e537b9f02aadef60c9b0c29f27503f7d7d51a (diff)
problem pasting to calc an image copied from firefox (windows)
Calc tries to paste the image as html. In case both HTML_SIMPLE and BITMAP flavors are present in the clipboard, we paste as BITMAP Change-Id: I2527bedf11eb6986b58329acaf360a397af03101 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153614 Tested-by: Jenkins Reviewed-by: Henry Castro <hcastro@collabora.com>
-rw-r--r--sc/source/ui/view/viewfun3.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/ui/view/viewfun3.cxx b/sc/source/ui/view/viewfun3.cxx
index a3d5c01e370f..8a9b489833fc 100644
--- a/sc/source/ui/view/viewfun3.cxx
+++ b/sc/source/ui/view/viewfun3.cxx
@@ -597,6 +597,8 @@ void ScViewFunc::PasteFromSystem()
PasteFromSystem(SotClipboardFormatId::RICHTEXT);
else if (aDataHelper.HasFormat(SotClipboardFormatId::HTML))
PasteFromSystem(SotClipboardFormatId::HTML);
+ else if (aDataHelper.HasFormat(SotClipboardFormatId::BITMAP))
+ PasteFromSystem(SotClipboardFormatId::BITMAP);
else if (aDataHelper.HasFormat(SotClipboardFormatId::HTML_SIMPLE))
PasteFromSystem(SotClipboardFormatId::HTML_SIMPLE);
else if (aDataHelper.HasFormat(SotClipboardFormatId::SYLK))