summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
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();