diff options
author | Michael Stahl <mstahl@redhat.com> | 2011-10-28 15:30:12 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2011-10-28 17:33:43 +0200 |
commit | d87d2aa40853d6119322698b26d701a4936b52a5 (patch) | |
tree | 732a9b20bbfae632951e9e692497f87bc9ce5738 /sw/inc | |
parent | 436a1a1a9a79113825b1946f9aa83303a475b00e (diff) |
SwRenderData: fix regression:
It turns out that the SwDoc member of SwRenderData was not actually
leaked, but was deleted via the ViewShell member.
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/printdata.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/printdata.hxx b/sw/inc/printdata.hxx index 5a3d83b6ea5d..8d29336d036b 100644 --- a/sw/inc/printdata.hxx +++ b/sw/inc/printdata.hxx @@ -254,7 +254,7 @@ public: // PostIt relevant data /// an array of "_SetGetExpFld *" sorted by page and line numbers ::boost::scoped_ptr<_SetGetExpFlds> m_pPostItFields; - ::boost::scoped_ptr<SwDoc> m_pPostItDoc; + /// this contains a SwDoc with the post-it content ::boost::scoped_ptr<ViewShell> m_pPostItShell; public: @@ -262,7 +262,7 @@ public: ~SwRenderData(); - bool HasPostItData() const { return m_pPostItShell != 0 && m_pPostItDoc != 0; } + bool HasPostItData() const { return m_pPostItShell != 0; } void CreatePostItData( SwDoc *pDoc, const SwViewOption *pViewOpt, OutputDevice *pOutDev ); void DeletePostItData(); |