diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2016-11-11 14:47:11 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2016-11-11 15:42:02 +0000 |
commit | f908ec9c2230a65db309fe5ed3e43390d72bbe51 (patch) | |
tree | e3017a8ee3cbf7df5f32c3717486685eadbaf776 /sd | |
parent | tdf#103632 - sc: OOB sort fields unit test. (diff) | |
download | core-f908ec9c2230a65db309fe5ed3e43390d72bbe51.tar.gz core-f908ec9c2230a65db309fe5ed3e43390d72bbe51.zip |
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>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/view/sdview4.cxx | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sd/source/ui/view/sdview4.cxx b/sd/source/ui/view/sdview4.cxx index 756f2fff2963..7782139d604e 100644 --- a/sd/source/ui/view/sdview4.cxx +++ b/sd/source/ui/view/sdview4.cxx @@ -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() ); |