diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-06 14:04:02 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-08-20 14:13:28 +0200 |
commit | ee8555a79cff9dbe5f5fa846025efc72ba0854b4 (patch) | |
tree | 29ef2a35d5abd43f703db5f1cbdcb0b56cbf9ae0 /sot | |
parent | 913bfd38f5021e2b7edc00328e51cd841d4f7234 (diff) |
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 <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
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 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<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); } /************************************************************************* |