diff options
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/shape/ShapeContextHandler.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/shape/ShapeContextHandler.cxx b/oox/source/shape/ShapeContextHandler.cxx index c80afb63670a..d9ae6949bdca 100644 --- a/oox/source/shape/ShapeContextHandler.cxx +++ b/oox/source/shape/ShapeContextHandler.cxx @@ -473,7 +473,7 @@ ShapeContextHandler::getShape() throw (uno::RuntimeException, std::exception) } else if (mxLockedCanvasContext.is()) { - ShapePtr pShape = dynamic_cast<LockedCanvasContext*>(mxLockedCanvasContext.get())->getShape(); + ShapePtr pShape = dynamic_cast<LockedCanvasContext&>(*mxLockedCanvasContext.get()).getShape(); if (pShape) { basegfx::B2DHomMatrix aMatrix; @@ -514,7 +514,7 @@ ShapeContextHandler::getShape() throw (uno::RuntimeException, std::exception) } else if (mxWpgContext.is()) { - ShapePtr pShape = dynamic_cast<WpgContext*>(mxWpgContext.get())->getShape(); + ShapePtr pShape = dynamic_cast<WpgContext&>(*mxWpgContext.get()).getShape(); if (pShape) { basegfx::B2DHomMatrix aMatrix; |