summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-04-05 10:35:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-04-06 06:29:22 +0200
commit606c019123bccc102e3903f1c1f6b8c8121cca79 (patch)
treed908563d06bbd4cc64a930b5ca59ada7f3d35cf1 /sd/source
parent5bf00019c2bbe2045d3da7d98552c601309142b5 (diff)
fix bug in View::CreateSelectionDataObject
ever since commit 5e6def1bd4e36379e8dce78402820540bd6f02e2 Date: Fri Jan 19 18:15:28 2001 +0000 Redesign for XTransferable found by my unusedvariablemore plugin Change-Id: I80c8db159c026cbdc93449ace61444adf7c854ce Reviewed-on: https://gerrit.libreoffice.org/52448 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/view/sdview2.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sd/source/ui/view/sdview2.cxx b/sd/source/ui/view/sdview2.cxx
index c18f8bdbed0c..29c3c2bc24a8 100644
--- a/sd/source/ui/view/sdview2.cxx
+++ b/sd/source/ui/view/sdview2.cxx
@@ -200,14 +200,13 @@ css::uno::Reference< css::datatransfer::XTransferable > View::CreateSelectionDat
css::uno::Reference< css::datatransfer::XTransferable > xRet( pTransferable );
std::unique_ptr<TransferableObjectDescriptor> pObjDesc(new TransferableObjectDescriptor);
const ::tools::Rectangle aMarkRect( GetAllMarkedRect() );
- OUString aDisplayName;
SD_MOD()->pTransferSelection = pTransferable;
if( mpDocSh )
{
- aDisplayName = mpDocSh->GetMedium()->GetURLObject().GetURLNoPass();
mpDocSh->FillTransferableObjectDescriptor( *pObjDesc );
+ pObjDesc->maDisplayName = mpDocSh->GetMedium()->GetURLObject().GetURLNoPass();
}
pObjDesc->maSize = aMarkRect.GetSize();