tdf#98059 Don't replace existing objects when inserting media

Change-Id: I849e6801a20fcd3fb10482854e56923f99060f04
Reviewed-on: https://gerrit.libreoffice.org/30776
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
This commit is contained in:
Samuel Mehrbrodt 2016-11-11 14:47:11 +01:00
parent 99316fc0c8
commit f908ec9c22

View File

@ -329,12 +329,6 @@ SdrMediaObj* View::InsertMediaObj( const OUString& rMediaURL, const OUString& rM
pPV = nullptr;
}
if( !pPickObj && pPV )
{
SdrPageView* pPageView = pPV;
PickObj(rPos, getHitTolLog(), pPickObj, pPageView);
}
if( mnAction == DND_ACTION_LINK && pPickObj && pPV && dynamic_cast< SdrMediaObj *>( pPickObj ) != nullptr )
{
pNewMediaObj = static_cast< SdrMediaObj* >( pPickObj->Clone() );