diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-06 14:04:02 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-06 14:04:02 +0200 |
commit | 0c08cb23b4902f19ed0e1050b5c9a52164c0d2ac (patch) | |
tree | 989bd20bb6dfc71f1a7c14a3fa7a2284d9c14fb3 /sot | |
parent | f7d65b04126b614bbb0b1bc0e7b6309900d4dc8d (diff) |
tdf#93018 - Copying forms not working anymore (part2)
I missed a similar bug lower down
Change-Id: I673c69dd1d36cc1b502a7de7821a05d859313aac
Diffstat (limited to 'sot')
-rw-r--r-- | sot/source/base/exchange.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sot/source/base/exchange.cxx b/sot/source/base/exchange.cxx index 78a7d13461bb..24604dd77a4b 100644 --- a/sot/source/base/exchange.cxx +++ b/sot/source/base/exchange.cxx @@ -287,16 +287,14 @@ SotClipboardFormatId SotExchange::RegisterFormatMimeType( const OUString& rMimeT return static_cast<SotClipboardFormatId>(i + static_cast<int>(SotClipboardFormatId::USER_END) + 1); } - // nMax ist der neue Platz DataFlavor* pNewFlavor = new DataFlavor; - pNewFlavor->MimeType = rMimeType; pNewFlavor->HumanPresentableName = rMimeType; pNewFlavor->DataType = cppu::UnoType<OUString>::get(); rL.push_back( pNewFlavor ); - return static_cast<SotClipboardFormatId>(static_cast<int>(nMax) + static_cast<int>(SotClipboardFormatId::USER_END) + 1); + return static_cast<SotClipboardFormatId>(static_cast<int>(rL.size()-1) + static_cast<int>(SotClipboardFormatId::USER_END) + 1); } /************************************************************************* |