From db9a72630bc13eeef829303db97b5107b9ad78e9 Mon Sep 17 00:00:00 2001 From: "Thomas Lange [tl]" Date: Wed, 3 Nov 2010 14:59:06 +0100 Subject: cws tl88: #i115354# crash when opening File/Print dialog fixed --- sw/source/core/doc/doc.cxx | 2 ++ 1 file changed, 2 insertions(+) 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; } -- cgit v1.2.3