diff options
author | David Tardon <dtardon@redhat.com> | 2020-06-12 16:41:07 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-06-13 16:06:36 +0200 |
commit | 40f6f850f0ad2b5899655076a317cba1b8d92e89 (patch) | |
tree | 1794688ddc49c7887d3a5cab7c908abe9e524bd0 /lotuswordpro | |
parent | sw: reindent that (diff) | |
download | core-40f6f850f0ad2b5899655076a317cba1b8d92e89.tar.gz core-40f6f850f0ad2b5899655076a317cba1b8d92e89.zip |
use dynamic_cast
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 <caolanm@redhat.com>
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwpframelayout.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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<LwpStory*>(m_Content.obj(VO_STORY).get()); + LwpStory* pStory = dynamic_cast<LwpStory*>(m_Content.obj(VO_STORY).get()); if (pStory) { pStory->SetDropcapFlag(true); |