summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Lange [tl] <tl@openoffice.org>2010-11-03 14:59:06 +0100
committerThomas Lange [tl] <tl@openoffice.org>2010-11-03 14:59:06 +0100
commitdb9a72630bc13eeef829303db97b5107b9ad78e9 (patch)
tree98bde50c9281d26ffe0fe5d76d51a04dc28ade9f
parentc0be68452261575069d0192bfe722c8b398d9973 (diff)
cws tl88: #i115354# crash when opening File/Print dialog fixed
-rw-r--r--sw/source/core/doc/doc.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/core/doc/doc.cxx b/sw/source/core/doc/doc.cxx
index dfde0fbc50e3..2378cd1d68a1 100644
--- a/sw/source/core/doc/doc.cxx
+++ b/sw/source/core/doc/doc.cxx
@@ -631,6 +631,8 @@ void SwDoc::setJobsetup(/*[in]*/ const JobSetup &rJobSetup )
SwPrintData* SwDoc::getPrintData() const
{
+ if(!pPrtData)
+ ((SwDoc*)this)->pPrtData = new SwPrintData;
return pPrtData;
}