sfx2/source/appl/fileobj.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit d4e291460fe801f82f405cdf648d96ed06a8113a Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Sat Sep 20 10:59:45 2025 +0200 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Sat Sep 20 13:17:49 2025 +0200 GetData doesn't need to register the requested format It only compares the returned id to the pre-defined ones, so adding a new dynamic format is useless. Change-Id: I87c2de2cf4424c53cde8490eb321f7259172eb80 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191224 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/sfx2/source/appl/fileobj.cxx b/sfx2/source/appl/fileobj.cxx index 2d4aa100d9d3..1e8517acddb6 100644 --- a/sfx2/source/appl/fileobj.cxx +++ b/sfx2/source/appl/fileobj.cxx @@ -73,7 +73,7 @@ bool SvFileObject::GetData( css::uno::Any & rData, const OUString & rMimeType, bool /*bGetSynchron*/ ) { - SotClipboardFormatId nFmt = SotExchange::RegisterFormatMimeType( rMimeType ); + SotClipboardFormatId nFmt = SotExchange::GetFormatIdFromMimeType(rMimeType); switch( nType ) { case SvFileObjectType::Text: