summaryrefslogtreecommitdiff
path: root/sw/inc/printdata.hxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2011-10-28 14:22:39 +0200
committerMichael Stahl <mstahl@redhat.com>2011-10-28 17:33:43 +0200
commit43b116147f66c9abceaae6177a2930b6266e6cad (patch)
treeea5d905a1ac8733bff515e76e1313dd2dd3a65c5 /sw/inc/printdata.hxx
parentb6828ca1624d289dc8d2cb15605ade5da1a2382a (diff)
SwRenderData: fix assertion:
apparently SwXTextDocument::getRenderCount() may be called more than once, so make SwRenderData::CreatePostItData() stop complanining and leaking memory.
Diffstat (limited to 'sw/inc/printdata.hxx')
-rw-r--r--sw/inc/printdata.hxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/sw/inc/printdata.hxx b/sw/inc/printdata.hxx
index 475cddac6fba..dc292a4cc7d1 100644
--- a/sw/inc/printdata.hxx
+++ b/sw/inc/printdata.hxx
@@ -33,6 +33,8 @@
#include <rtl/ustring.hxx>
#include <vcl/print.hxx>
+#include <boost/scoped_ptr.hpp>
+
#include <set>
#include <map>
#include <vector>
@@ -250,9 +252,10 @@ class SwRenderData
public:
// PostIt relevant data
- _SetGetExpFlds * m_pPostItFields; // an array of "_SetGetExpFld *" sorted by page and line numbers
- SwDoc * m_pPostItDoc;
- ViewShell * m_pPostItShell;
+ /// an array of "_SetGetExpFld *" sorted by page and line numbers
+ ::boost::scoped_ptr<_SetGetExpFlds> m_pPostItFields;
+ ::boost::scoped_ptr<SwDoc> m_pPostItDoc;
+ ::boost::scoped_ptr<ViewShell> m_pPostItShell;
public:
SwRenderData();