diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-01-28 14:54:13 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-01-28 18:14:54 +0100 |
commit | 4e84a42add9c8ac27feb5e49a96e00ffcc8f0bc8 (patch) | |
tree | e520552fcaba4b830111181c22bd1303620154bf /lotuswordpro/source/filter/lwpfribptr.hxx | |
parent | 943060836339f9640c612e9724f20e79db616e6e (diff) |
ofz#30005 crash in LwpFribPtr::XFConvert
Change-Id: I4f03c1cd8bc12f3fa09c815837b289ff088c91d3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110086
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'lotuswordpro/source/filter/lwpfribptr.hxx')
-rw-r--r-- | lotuswordpro/source/filter/lwpfribptr.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/lwpfribptr.hxx b/lotuswordpro/source/filter/lwpfribptr.hxx index d51ecdbfab75..5014d2b250c6 100644 --- a/lotuswordpro/source/filter/lwpfribptr.hxx +++ b/lotuswordpro/source/filter/lwpfribptr.hxx @@ -76,14 +76,14 @@ public: private: LwpFrib* m_pFribs; - XFParagraph* m_pXFPara; //Current XFPara used for frib parsing + rtl::Reference<XFParagraph> m_pXFPara; //Current XFPara used for frib parsing LwpPara* m_pPara; //for get foundry static void ProcessDropcap(LwpStory* pStory, const LwpFrib* pFrib, sal_uInt32 nLen); public: void XFConvert(); void SetXFPara(XFParagraph* Para) { m_pXFPara = Para; } - XFParagraph* GetXFPara() { return m_pXFPara; } + XFParagraph* GetXFPara() { return m_pXFPara.get(); } void SetPara(LwpPara* para) { m_pPara = para; } void RegisterStyle(); LwpFrib* GetFribs() { return m_pFribs; } |