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:
parent
99316fc0c8
commit
f908ec9c22
@ -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() );
|
||||
|
Loading…
x
Reference in New Issue
Block a user