diff options
Diffstat (limited to 'sd/source/ui/animations/motionpathtag.cxx')
-rw-r--r-- | sd/source/ui/animations/motionpathtag.cxx | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/sd/source/ui/animations/motionpathtag.cxx b/sd/source/ui/animations/motionpathtag.cxx index 17ab179c949b..887c6014f29c 100644 --- a/sd/source/ui/animations/motionpathtag.cxx +++ b/sd/source/ui/animations/motionpathtag.cxx @@ -41,7 +41,6 @@ #include <sfx2/dispatch.hxx> #include <svx/sdr/overlay/overlaymanager.hxx> -#include <svx/sdr/overlay/overlaysdrobject.hxx> #include <svx/sdr/overlay/overlaypolypolygon.hxx> #include <svx/svdpagv.hxx> #include <svx/sdrpagewindow.hxx> @@ -68,6 +67,9 @@ #include "app.hrc" #include "Window.hxx" +#include <svx/sdr/contact/viewcontact.hxx> +#include <svx/sdr/overlay/overlayprimitive2dsequenceobject.hxx> + using ::rtl::OUString; using ::sdr::PolyPolygonEditor; using namespace ::com::sun::star::uno; @@ -310,26 +312,18 @@ void SdPathHdl::CreateB2dIAObject() { for(sal_uInt32 b(0L); b < pPageView->PageWindowCount(); b++) { - // const SdrPageViewWinRec& rPageViewWinRec = rPageViewWinList[b]; const SdrPageWindow& rPageWindow = *pPageView->GetPageWindow(b); if(rPageWindow.GetPaintWindow().OutputToWindow()) { - if(rPageWindow.GetOverlayManager()) + if(rPageWindow.GetOverlayManager() && mpPathObj) { - const SdrPathObj& rPath = *mpPathObj; - - ::sdr::overlay::OverlayObject* pNewOverlayObject = new - ::sdr::overlay::OverlaySdrObject(basegfx::B2DPoint(), rPath); - //::sdr::overlay::OverlayPolyPolygonStriped( maPolyPolygon ); - DBG_ASSERT(pNewOverlayObject, "Got NO new IAO!"); + const sdr::contact::ViewContact& rVC = mpPathObj->GetViewContact(); + const drawinglayer::primitive2d::Primitive2DSequence aSequence = rVC.getViewIndependentPrimitive2DSequence(); + sdr::overlay::OverlayObject* pNew = new sdr::overlay::OverlayPrimitive2DSequenceObject(aSequence); - // OVERLAYMANAGER - if(pNewOverlayObject) - { - rPageWindow.GetOverlayManager()->add(*pNewOverlayObject); - maOverlayGroup.append(*pNewOverlayObject); - } + rPageWindow.GetOverlayManager()->add(*pNew); + maOverlayGroup.append(*pNew); } } } |