From ee8555a79cff9dbe5f5fa846025efc72ba0854b4 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 6 Aug 2015 14:04:02 +0200 Subject: tdf#93018 - Copying forms not working anymore (part2) I missed a similar bug lower down Change-Id: I673c69dd1d36cc1b502a7de7821a05d859313aac (cherry picked from commit 0c08cb23b4902f19ed0e1050b5c9a52164c0d2ac) Reviewed-on: https://gerrit.libreoffice.org/17537 Tested-by: Jenkins Reviewed-by: Julien Nabet Reviewed-by: Eike Rathke Tested-by: Eike Rathke --- sot/source/base/exchange.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sot') diff --git a/sot/source/base/exchange.cxx b/sot/source/base/exchange.cxx index 0d9cf8b52001..75bf9f166bb2 100644 --- a/sot/source/base/exchange.cxx +++ b/sot/source/base/exchange.cxx @@ -286,16 +286,14 @@ SotClipboardFormatId SotExchange::RegisterFormatMimeType( const OUString& rMimeT return static_cast(i + static_cast(SotClipboardFormatId::USER_END) + 1); } - // nMax ist der neue Platz DataFlavor* pNewFlavor = new DataFlavor; - pNewFlavor->MimeType = rMimeType; pNewFlavor->HumanPresentableName = rMimeType; pNewFlavor->DataType = cppu::UnoType::get(); rL.push_back( pNewFlavor ); - return static_cast(static_cast(nMax) + static_cast(SotClipboardFormatId::USER_END) + 1); + return static_cast(static_cast(rL.size()-1) + static_cast(SotClipboardFormatId::USER_END) + 1); } /************************************************************************* -- cgit v1.2.3