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
commit3ce1e3d5c494d5f467d43bdfe52be7b8c91eb684 (patch)
tree8f6a4443249a61a9312433ee65ea564c3238fb46
parent31f654d334dd2a59df0cf203ebc91660f52ba104 (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 a470440968..4cd360128c 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;
}