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 15:13:45 +0200 |
commit | 2274c20b25b51473c4c87bc6baee135c296c00eb (patch) | |
tree | 46c55b3d1d7f48198bc94eda0d12f5dfebba3f5e /lotuswordpro | |
parent | b094922d002422ea6872ecc23627f69a4bfc4bb0 (diff) |
use dynamic_cast
Change-Id: Iac420c2dd37be392ae817e0433de68c983546667
(cherry picked from commit 06248bbaf21723f505d99c65906e5c6781c54c83)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96236
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 dc873d16774e..f2a735387005 100644 --- a/lotuswordpro/source/filter/lwpframelayout.cxx +++ b/lotuswordpro/source/filter/lwpframelayout.cxx @@ -1169,7 +1169,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); |