From afa5932fc92d8eb90044750c2ae8cef149fcd4cc Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 13 Apr 2018 14:33:27 +0100 Subject: ofz#7648 Bad-cast MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I21aaf36f3d6b6c3054649208de809b99aa384c01 Reviewed-on: https://gerrit.libreoffice.org/52836 Tested-by: Jenkins Reviewed-by: Miklos Vajna (cherry picked from commit 1db17a71b028c392a00393cdf313e1720b93fd2e) Reviewed-on: https://gerrit.libreoffice.org/53655 Reviewed-by: Thorsten Behrens Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- lotuswordpro/source/filter/lwpfrib.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lotuswordpro/source/filter/lwpfrib.cxx b/lotuswordpro/source/filter/lwpfrib.cxx index f97d9041f9c9..c3dd7f176387 100644 --- a/lotuswordpro/source/filter/lwpfrib.cxx +++ b/lotuswordpro/source/filter/lwpfrib.cxx @@ -251,7 +251,7 @@ void LwpFrib::RegisterStyle(LwpFoundry* pFoundry) XFTextStyle* pNamedStyle = nullptr; if (m_pModifiers->HasCharStyle && pFoundry) { - pNamedStyle = static_cast + pNamedStyle = dynamic_cast (pFoundry->GetStyleManager()->GetStyle(m_pModifiers->CharStyleID)); } if (pNamedStyle) -- cgit v1.2.3