diff options
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/animations/motionpathtag.cxx | 7 | ||||
-rw-r--r-- | sd/source/ui/annotations/annotationtag.cxx | 7 | ||||
-rw-r--r-- | sd/source/ui/view/viewoverlaymanager.cxx | 9 |
3 files changed, 17 insertions, 6 deletions
diff --git a/sd/source/ui/animations/motionpathtag.cxx b/sd/source/ui/animations/motionpathtag.cxx index 47e2f5d98f1d..7ca7fc925361 100644 --- a/sd/source/ui/animations/motionpathtag.cxx +++ b/sd/source/ui/animations/motionpathtag.cxx @@ -290,8 +290,11 @@ void SdPathHdl::CreateB2dIAObject() const drawinglayer::primitive2d::Primitive2DContainer& aSequence = rVC.getViewIndependentPrimitive2DContainer(); std::unique_ptr<sdr::overlay::OverlayObject> pNew(new sdr::overlay::OverlayPrimitive2DSequenceObject(aSequence)); - xManager->add(*pNew); - maOverlayGroup.append(std::move(pNew)); + // OVERLAYMANAGER + insertNewlyCreatedOverlayObjectForSdrHdl( + std::move(pNew), + rPageWindow.GetObjectContact(), + *xManager.get()); } } } diff --git a/sd/source/ui/annotations/annotationtag.cxx b/sd/source/ui/annotations/annotationtag.cxx index 9a27599411e6..9a58a17baeb9 100644 --- a/sd/source/ui/annotations/annotationtag.cxx +++ b/sd/source/ui/annotations/annotationtag.cxx @@ -225,8 +225,11 @@ void AnnotationHdl::CreateB2dIAObject() pOverlayObject.reset(new sdr::overlay::OverlayBitmapEx( aPosition, aBitmapEx, 0, 0 )); } - xManager->add(*pOverlayObject); - maOverlayGroup.append(std::move(pOverlayObject)); + // OVERLAYMANAGER + insertNewlyCreatedOverlayObjectForSdrHdl( + std::move(pOverlayObject), + rPageWindow.GetObjectContact(), + *xManager.get()); } } } diff --git a/sd/source/ui/view/viewoverlaymanager.cxx b/sd/source/ui/view/viewoverlaymanager.cxx index 0174c2ba27c1..2f1c148c5c37 100644 --- a/sd/source/ui/view/viewoverlaymanager.cxx +++ b/sd/source/ui/view/viewoverlaymanager.cxx @@ -34,6 +34,7 @@ #include <svx/sdr/overlay/overlayanimatedbitmapex.hxx> #include <svx/sdr/overlay/overlaybitmapex.hxx> #include <svx/sdr/overlay/overlaymanager.hxx> +#include <svx/sdr/contact/objectcontact.hxx> #include <svx/svxids.hrc> #include <view/viewoverlaymanager.hxx> @@ -248,8 +249,12 @@ void ImageButtonHdl::CreateB2dIAObject() { std::unique_ptr<sdr::overlay::OverlayObject> pOverlayObject( new sdr::overlay::OverlayBitmapEx( aPosition, aBitmapEx, 0, 0 )); - xManager->add(*pOverlayObject); - maOverlayGroup.append(std::move(pOverlayObject)); + + // OVERLAYMANAGER + insertNewlyCreatedOverlayObjectForSdrHdl( + std::move(pOverlayObject), + rPageWindow.GetObjectContact(), + *xManager.get()); } } } |