lotuswordpro/source/filter/lwpfrib.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit f03fe2b36ee6f5af68aec948fa2be97bb95281a3 Author: Caolán McNamara <caol...@redhat.com> Date: Fri Apr 13 14:33:27 2018 +0100 ofz#7648 Bad-cast Change-Id: I21aaf36f3d6b6c3054649208de809b99aa384c01 Reviewed-on: https://gerrit.libreoffice.org/52835 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Miklos Vajna <vmik...@collabora.co.uk> diff --git a/lotuswordpro/source/filter/lwpfrib.cxx b/lotuswordpro/source/filter/lwpfrib.cxx index f1f74a25420c..5ea18188c4bc 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<XFTextStyle*> + pNamedStyle = dynamic_cast<XFTextStyle*> (pFoundry->GetStyleManager()->GetStyle(m_pModifiers->CharStyleID)); } if (pNamedStyle) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits