[Libreoffice-commits] core.git: Branch 'libreoffice-5-4-7' - lotuswordpro/source
Caolán McNamara
caolanm at redhat.com
Mon Apr 30 10:35:07 UTC 2018
lotuswordpro/source/filter/lwpfrib.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit afa5932fc92d8eb90044750c2ae8cef149fcd4cc
Author: Caolán McNamara <caolanm at redhat.com>
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 <ci at libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
(cherry picked from commit 1db17a71b028c392a00393cdf313e1720b93fd2e)
Reviewed-on: https://gerrit.libreoffice.org/53655
Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
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)
More information about the Libreoffice-commits
mailing list