[Libreoffice-commits] core.git: Branch 'libreoffice-6-0-5' - drawinglayer/source

Caolán McNamara caolanm at redhat.com
Mon Jun 18 10:13:33 UTC 2018


 drawinglayer/source/tools/emfphelperdata.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 2bd316b65875a1601b10fce2611b429f810bdc7a
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/55680
    Reviewed-by: Eike Rathke <erack at redhat.com>
    Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
    Tested-by: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>

diff --git a/drawinglayer/source/tools/emfphelperdata.cxx b/drawinglayer/source/tools/emfphelperdata.cxx
index ee0bf69c4ac0..2c49949870f4 100644
--- a/drawinglayer/source/tools/emfphelperdata.cxx
+++ b/drawinglayer/source/tools/emfphelperdata.cxx
@@ -396,7 +396,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