sc/source/ui/app/transobj.cxx | 1 + 1 file changed, 1 insertion(+) New commits: commit 76a4615fc0c78abc93735b3362789836d1f82016 Author: Tor Lillqvist <t...@collabora.com> AuthorDate: Mon Dec 21 17:57:27 2020 +0200 Commit: Tor Lillqvist <t...@collabora.com> CommitDate: Mon Dec 21 21:26:40 2020 +0100
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 <t...@collabora.com> 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 ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits