summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/filter/ww8/wrtww8.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/wrtww8.cxx b/sw/source/filter/ww8/wrtww8.cxx
index 7651b40ad06c..b89a14344fc5 100644
--- a/sw/source/filter/ww8/wrtww8.cxx
+++ b/sw/source/filter/ww8/wrtww8.cxx
@@ -55,6 +55,7 @@
#include <fmtrowsplt.hxx>
#include <frmatr.hxx>
#include <doc.hxx>
+#include <viewopt.hxx>
#include <docary.hxx>
#include <pam.hxx>
#include <ndtxt.hxx>
@@ -232,6 +233,10 @@ static void WriteDop( WW8Export& rWrt )
DefaultItemGet<SvxTabStopItem>(*rWrt.pDoc, RES_PARATR_TABSTOP);
rDop.dxaTab = (sal_uInt16)rTabStop[0].GetTabPos();
+ // Zoom factor.
+ ViewShell *pViewShell(rWrt.pDoc->GetCurrentViewShell());
+ if (pViewShell && pViewShell->GetViewOptions()->GetZoomType() == SVX_ZOOM_PERCENT)
+ rDop.wScaleSaved = pViewShell->GetViewOptions()->GetZoom();
// Werte aus der DocStatistik (werden aufjedenfall fuer die
// DocStat-Felder benoetigt!)