diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-02-25 13:11:04 +0100 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-02-25 16:35:49 +0000 |
commit | a724fb43d8540687e33d75c90660250e5308585d (patch) | |
tree | 07dbf8bb6483b7f13d6758ae5c27356bb2c33dfa /svtools | |
parent | 6cf68eab5eb77b7e081ef5f8d59d196411e86567 (diff) |
fdo#59405: initialize members of TransferableObjectDescriptor
The mnViewAspect member is otherwise only initialized if a
SOT_FORMATSTR_ID_OBJECTDESCRIPTOR thingy is in the clipboard, which only
happens if the clipboard source is OOo/LO.
When inserting an OLE object, the value MSOLE_CONTENT apparently results
in requesting the current size from the OLE object, which looks much
better than the square default.
Change-Id: I8c7fb80a8ae88272f1ecaf3a375bef5d917f2a5b
(cherry picked from commit 0cf6433117477642897fb2d874a4353eff8a1f35)
Reviewed-on: https://gerrit.libreoffice.org/2393
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/inc/svtools/transfer.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/svtools/inc/svtools/transfer.hxx b/svtools/inc/svtools/transfer.hxx index 25c0d5246af4..93dab759a89b 100644 --- a/svtools/inc/svtools/transfer.hxx +++ b/svtools/inc/svtools/transfer.hxx @@ -37,6 +37,7 @@ #include <com/sun/star/datatransfer/dnd/DropTargetDropEvent.hpp> #include <com/sun/star/datatransfer/dnd/XDragSourceListener.hpp> #include <com/sun/star/datatransfer/dnd/XDropTargetListener.hpp> +#include <com/sun/star/embed/Aspects.hpp> #include <com/sun/star/io/XInputStream.hpp> // ------------------------ @@ -82,6 +83,12 @@ struct TransferableObjectDescriptor String maDisplayName; sal_Bool mbCanLink; + TransferableObjectDescriptor() + : mnViewAspect(::com::sun::star::embed::Aspects::MSOLE_CONTENT) + , mnOle2Misc(0) + , mbCanLink(false) + {} + SVT_DLLPUBLIC friend SvStream& operator>>( SvStream& rIStm, TransferableObjectDescriptor& rObjDesc ); SVT_DLLPUBLIC friend SvStream& operator<<( SvStream& rOStm, const TransferableObjectDescriptor& rObjDesc ); }; |