summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-04-13 14:33:27 +0100
committerAndras Timar <andras.timar@collabora.com>2018-05-25 00:20:33 -0700
commitb69b6678a24bdb98e843da634fbc9d5a539ff852 (patch)
tree934f42e852af858e38ae01a7b21f7281b4f983ab
parent9526d276bf449e197a652ca1be267fb7a89e43b2 (diff)
ofz#7648 Bad-cast
Change-Id: I21aaf36f3d6b6c3054649208de809b99aa384c01 Reviewed-on: https://gerrit.libreoffice.org/52836 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> (cherry picked from commit 1db17a71b028c392a00393cdf313e1720b93fd2e) (cherry picked from commit 20bf87c6a3a076fe78f938b7a3086146336976e7)
-rw-r--r--lotuswordpro/source/filter/lwpfrib.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwpfrib.cxx b/lotuswordpro/source/filter/lwpfrib.cxx
index a1b62b4217ab..8f858173739b 100644
--- a/lotuswordpro/source/filter/lwpfrib.cxx
+++ b/lotuswordpro/source/filter/lwpfrib.cxx
@@ -252,7 +252,7 @@ void LwpFrib::RegisterStyle(LwpFoundry* pFoundry)
XFTextStyle* pNamedStyle = nullptr;
if (m_pModifiers->HasCharStyle && pFoundry)
{
- pNamedStyle = static_cast<XFTextStyle*>
+ pNamedStyle = dynamic_cast<XFTextStyle*>
(pFoundry->GetStyleManager()->GetStyle(m_pModifiers->CharStyleID));
}
if (pNamedStyle)