diff options
Diffstat (limited to 'sw/source/core/view/vprint.cxx')
-rwxr-xr-x | sw/source/core/view/vprint.cxx | 6 |
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; |