summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2019-05-22 15:42:51 +0200
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2019-05-23 10:39:07 +0200
commit8d0949a0dd7fcd72a29a455598815ed2daa0724a (patch)
treee22a904a508abbf5caa4df360a4300b7f66e622a
parentconst fixes for python3-devel-3.7.0-1.fc29.x86_64 (diff)
downloadcore-8d0949a0dd7fcd72a29a455598815ed2daa0724a.tar.gz
core-8d0949a0dd7fcd72a29a455598815ed2daa0724a.zip
Revert "tdf#121962 Update fields after layout has been calculated"
This reverts commit a66e11492b847a53c84211d78da2c946adaaaf4e.
-rw-r--r--sw/source/uibase/uno/unotxdoc.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx
index 6095b8801cbe..3a8a7ada5119 100644
--- a/sw/source/uibase/uno/unotxdoc.cxx
+++ b/sw/source/uibase/uno/unotxdoc.cxx
@@ -2594,6 +2594,8 @@ sal_Int32 SAL_CALL SwXTextDocument::getRendererCount(
bStateChanged = true;
}
+ // #122919# Force field update before PDF export
+ pViewShell->SwViewShell::UpdateFields(true);
if( bStateChanged )
pRenderDocShell->EnableSetModified();
@@ -2603,9 +2605,6 @@ sal_Int32 SAL_CALL SwXTextDocument::getRendererCount(
pViewShell->CalcLayout();
pViewShell->CalcPagesForPrint( pViewShell->GetPageCount() );
- // #122919# Force field update before PDF export, but after layout init (tdf#121962)
- pViewShell->SwViewShell::UpdateFields(true);
-
pViewShell->SetPDFExportOption( false );
// enable view again