[Libreoffice-commits] core.git: lotuswordpro/source
Caolán McNamara
caolanm at redhat.com
Sat Dec 12 13:07:27 PST 2015
lotuswordpro/source/filter/lwpnotes.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 8d57f2fb953f031c48892366ce52f6d4fcb9c025
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sat Dec 12 21:06:51 2015 +0000
this cast needs to be dynamic
Change-Id: Iaf8e7a46be9c92a7cd11136cb903cc4b9ffe54f5
diff --git a/lotuswordpro/source/filter/lwpnotes.cxx b/lotuswordpro/source/filter/lwpnotes.cxx
index 7b2221a..e203d42 100644
--- a/lotuswordpro/source/filter/lwpnotes.cxx
+++ b/lotuswordpro/source/filter/lwpnotes.cxx
@@ -98,7 +98,7 @@ void LwpFribNote::RegisterNewStyle()
*/
void LwpFribNote::XFConvert(XFContentContainer* pCont)
{
- LwpNoteLayout* pLayout =static_cast<LwpNoteLayout*>(m_Layout.obj().get());
+ LwpNoteLayout* pLayout = dynamic_cast<LwpNoteLayout*>(m_Layout.obj().get());
if(pLayout)
{
XFAnnotation* pXFNote = new XFAnnotation;
More information about the Libreoffice-commits
mailing list