summaryrefslogtreecommitdiff
path: root/sw/source/core/view/vnew.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/view/vnew.cxx')
-rw-r--r--sw/source/core/view/vnew.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sw/source/core/view/vnew.cxx b/sw/source/core/view/vnew.cxx
index 2998ffb131f8..4c74acecdd09 100644
--- a/sw/source/core/view/vnew.cxx
+++ b/sw/source/core/view/vnew.cxx
@@ -324,9 +324,7 @@ SwViewShell::~SwViewShell()
if ( mxDoc.get() )
{
- auto x = mxDoc->getReferenceCount();
- mxDoc.clear();
- if( x > 1 )
+ if( mxDoc->getReferenceCount() > 1 )
GetLayout()->ResetNewLayout();
}