diff options
Diffstat (limited to 'sw/source/uibase/uno/unotxdoc.cxx')
-rw-r--r-- | sw/source/uibase/uno/unotxdoc.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx index 00cefea1e109..c4266e8ef36a 100644 --- a/sw/source/uibase/uno/unotxdoc.cxx +++ b/sw/source/uibase/uno/unotxdoc.cxx @@ -2929,9 +2929,7 @@ void SAL_CALL SwXTextDocument::render( throw IllegalArgumentException(); // tdf#135244: prevent jumping to cursor at any temporary modification - decltype(pDocShell->LockAllViews()) aLock; - if (pDocShell) - aLock = pDocShell->LockAllViews(); + auto aLock = pDocShell->LockAllViews(); const bool bHasPDFExtOutDevData = lcl_SeqHasProperty( rxOptions, "HasPDFExtOutDevData" ); const bool bIsPDFExport = !lcl_SeqHasProperty( rxOptions, "IsPrinter" ) || bHasPDFExtOutDevData; |