summaryrefslogtreecommitdiff
path: root/sw/source/core
diff options
context:
space:
mode:
authorThomas Lange [tl] <tl@openoffice.org>2009-12-11 11:34:10 +0100
committerThomas Lange [tl] <tl@openoffice.org>2009-12-11 11:34:10 +0100
commit9195c2b45eb5488e939bb88281d45cb45fbe4861 (patch)
tree4e3c94c1a3ea8cdb9dd98b94d45e73afd2fe256e /sw/source/core
parentaf1e3ee0d10c10d6f30d8700ddc677a86dbf82c3 (diff)
#i106926# fixed hidden text in view when cancelling print to file
Diffstat (limited to 'sw/source/core')
-rwxr-xr-xsw/source/core/view/vprint.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/core/view/vprint.cxx b/sw/source/core/view/vprint.cxx
index 87b8c5177e26..0de4da31370d 100755
--- a/sw/source/core/view/vprint.cxx
+++ b/sw/source/core/view/vprint.cxx
@@ -285,14 +285,16 @@ void SwRenderData::DeletePostItData()
void SwRenderData::ViewOptionAdjustStart( SwWrtShell& rSh, const SwPrtOptions *pPrtOptions )
{
if (m_pViewOptionAdjust)
- delete m_pViewOptionAdjust;
+ {
+ DBG_ASSERT( 0, "error: there should be no ViewOptionAdjustStart active when calling it again" );
+ }
m_pViewOptionAdjust = new SwViewOptionAdjust_Impl( rSh, pPrtOptions );
}
void SwRenderData::ViewOptionAdjustStop()
{
- if (IsViewOptionAdjust())
+ if (m_pViewOptionAdjust)
{
delete m_pViewOptionAdjust;
m_pViewOptionAdjust = 0;