summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2020-12-21 17:57:27 +0200
committerTor Lillqvist <tml@collabora.com>2020-12-21 21:26:40 +0100
commit76a4615fc0c78abc93735b3362789836d1f82016 (patch)
tree004d2dc18e3ddaf4f69db458e26161ecb930707a
parentb49522d96306933dfc94f9e42cc45190514b0af9 (diff)
Add a comment here, too, that the lists of formats are identical
Sadly I couldn't quickly come up with a trvial way to just factor out that code snippet. Feel free. I have no idea what happens if at some point these two code snippets would start to diverge. Change-Id: Iebf6d8a9827955acac846b19ae48a2b8eede0bbe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108109 Tested-by: Jenkins Reviewed-by: Tor Lillqvist <tml@collabora.com>
-rw-r--r--sc/source/ui/app/transobj.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/source/ui/app/transobj.cxx b/sc/source/ui/app/transobj.cxx
index 1b11a56aa89c..713a5d8e6ea8 100644
--- a/sc/source/ui/app/transobj.cxx
+++ b/sc/source/ui/app/transobj.cxx
@@ -208,6 +208,7 @@ ScTransferObj* ScTransferObj::GetOwnClipboard(const uno::Reference<datatransfer:
void ScTransferObj::AddSupportedFormats()
{
+ // same formats as in ScSelectionTransferObj::AddSupportedFormats
AddFormat( SotClipboardFormatId::EMBED_SOURCE );
AddFormat( SotClipboardFormatId::OBJECTDESCRIPTOR );
AddFormat( SotClipboardFormatId::GDIMETAFILE );