summaryrefslogtreecommitdiff
path: root/sw/inc/printdata.hxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-09-26 12:43:29 +0200
committerMichael Stahl <mstahl@redhat.com>2012-09-26 12:57:27 +0200
commitd53e12c7a9c2d0a3b487303673c1fafd09f6593c (patch)
tree2ad08e0b624d0252f562cd1a22cfb28a2e2fac80 /sw/inc/printdata.hxx
parent0843533459302d9d9fe962f79dc5b040c3907ebc (diff)
rhbz#827695: sw: prevent crashes after incomplete print:
If the last page is not printed for whatever reason, then SwXTextDocument's destructor will delete a SwViewOptionAdjust_Impl, which accesses the document's ViewShell, which has already been deleted at that point. Add a horrible kludge to not crash for now. Change-Id: I67fe37970d60782030b84f2badddd1e66ef3f9c6
Diffstat (limited to 'sw/inc/printdata.hxx')
-rw-r--r--sw/inc/printdata.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/inc/printdata.hxx b/sw/inc/printdata.hxx
index 00e7fe544245..0f58d30d761f 100644
--- a/sw/inc/printdata.hxx
+++ b/sw/inc/printdata.hxx
@@ -42,7 +42,6 @@
class SwDoc;
class SwDocShell;
-class ViewShell;
class _SetGetExpFlds;
class SwViewOption;
class OutputDevice;
@@ -277,6 +276,7 @@ public:
void ViewOptionAdjustStart( ViewShell &rSh, const SwViewOption &rViewOptions);
void ViewOptionAdjust( SwPrintData const* const pPrtOptions );
void ViewOptionAdjustStop();
+ void ViewOptionAdjustCrashPreventionKludge();
bool HasSwPrtOptions() const { return m_pPrtOptions != 0; }
SwPrintData const* GetSwPrtOptions() const { return m_pPrtOptions.get(); }