[Libreoffice-commits] core.git: drawinglayer/source
Caolán McNamara
caolanm at redhat.com
Tue Jun 12 13:02:46 UTC 2018
drawinglayer/source/tools/emfphelperdata.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 33ba2d0c7358db32d4784627078602118b569e05
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Jun 12 12:14:36 2018 +0100
forcepoint#45 object may not be a EMFPPen
Change-Id: Ifb5c17e13faf6e9d246e1668ef7916957a5296b6
Reviewed-on: https://gerrit.libreoffice.org/55677
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/drawinglayer/source/tools/emfphelperdata.cxx b/drawinglayer/source/tools/emfphelperdata.cxx
index a7c455cfc1aa..78b76ecfe647 100644
--- a/drawinglayer/source/tools/emfphelperdata.cxx
+++ b/drawinglayer/source/tools/emfphelperdata.cxx
@@ -389,7 +389,7 @@ namespace emfplushelper
void EmfPlusHelperData::EMFPPlusDrawPolygon(const ::basegfx::B2DPolyPolygon& polygon, sal_uInt32 penIndex)
{
- const EMFPPen* pen = static_cast<EMFPPen*>(maEMFPObjects[penIndex & 0xff].get());
+ const EMFPPen* pen = dynamic_cast<EMFPPen*>(maEMFPObjects[penIndex & 0xff].get());
SAL_WARN_IF(!pen, "drawinglayer", "emf+ missing pen");
if (pen && polygon.count())
More information about the Libreoffice-commits
mailing list