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:
@@ -329,12 +329,6 @@ SdrMediaObj* View::InsertMediaObj( const OUString& rMediaURL, const OUString& rM
|
|||||||
pPV = nullptr;
|
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 )
|
if( mnAction == DND_ACTION_LINK && pPickObj && pPV && dynamic_cast< SdrMediaObj *>( pPickObj ) != nullptr )
|
||||||
{
|
{
|
||||||
pNewMediaObj = static_cast< SdrMediaObj* >( pPickObj->Clone() );
|
pNewMediaObj = static_cast< SdrMediaObj* >( pPickObj->Clone() );
|
||||||
|
Reference in New Issue
Block a user