lotuswordpro/source/filter/lwpfrib.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit afa5932fc92d8eb90044750c2ae8cef149fcd4cc Author: Caolán McNamara <[email protected]> Date: Fri Apr 13 14:33:27 2018 +0100 ofz#7648 Bad-cast Change-Id: I21aaf36f3d6b6c3054649208de809b99aa384c01 Reviewed-on: https://gerrit.libreoffice.org/52836 Tested-by: Jenkins <[email protected]> Reviewed-by: Miklos Vajna <[email protected]> (cherry picked from commit 1db17a71b028c392a00393cdf313e1720b93fd2e) Reviewed-on: https://gerrit.libreoffice.org/53655 Reviewed-by: Thorsten Behrens <[email protected]> Reviewed-by: Caolán McNamara <[email protected]> Tested-by: Caolán McNamara <[email protected]> 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<XFTextStyle*> + pNamedStyle = dynamic_cast<XFTextStyle*> (pFoundry->GetStyleManager()->GetStyle(m_pModifiers->CharStyleID)); } if (pNamedStyle) _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
