[Libreoffice-commits] core.git: Branch 'libreoffice-6-0' - lotuswordpro/source
Caolán McNamara
caolanm at redhat.com
Mon Apr 16 12:02:04 UTC 2018
lotuswordpro/source/filter/lwpfrib.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit f03fe2b36ee6f5af68aec948fa2be97bb95281a3
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/52835
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos at 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)
More information about the Libreoffice-commits
mailing list