From 6681c51754fea39424138b6f46b0bc281ca86909 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Fri, 12 Jun 2020 16:41:07 +0200 Subject: use dynamic_cast MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Iac420c2dd37be392ae817e0433de68c983546667 (cherry picked from commit 06248bbaf21723f505d99c65906e5c6781c54c83) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96270 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- lotuswordpro/source/filter/lwpframelayout.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lotuswordpro') diff --git a/lotuswordpro/source/filter/lwpframelayout.cxx b/lotuswordpro/source/filter/lwpframelayout.cxx index 3e6d9580f4e6..1d7fcc09e7df 100644 --- a/lotuswordpro/source/filter/lwpframelayout.cxx +++ b/lotuswordpro/source/filter/lwpframelayout.cxx @@ -1172,7 +1172,7 @@ void LwpDropcapLayout::XFConvert(XFContentContainer* pCont) void LwpDropcapLayout::RegisterStyle(LwpFoundry* pFoundry) { - LwpStory* pStory = static_cast(m_Content.obj(VO_STORY).get()); + LwpStory* pStory = dynamic_cast(m_Content.obj(VO_STORY).get()); if (pStory) { pStory->SetDropcapFlag(true); -- cgit