diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2017-05-24 12:59:26 +0200 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2017-05-24 13:01:51 +0200 |
commit | 6e01993a420912ab8896879b0b91c47c3479c239 (patch) | |
tree | a85f607930467086c7cd85f3d2a4895b64095132 /sw | |
parent | 0a58848fddbcc4a3fafe3ddb4fdfbb4feda73b30 (diff) |
tdf#108040 Don't turn on header to check if Watermark exist
Change-Id: Ieaf42384248deb283f71743f68c059b384abaa1a
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/edit/edfcol.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/edit/edfcol.cxx b/sw/source/core/edit/edfcol.cxx index c39ccadf3f81..4ffbd1263864 100644 --- a/sw/source/core/edit/edfcol.cxx +++ b/sw/source/core/edit/edfcol.cxx @@ -277,7 +277,7 @@ SfxWatermarkItem SwEditShell::GetWatermark() bool bHeaderIsOn = false; xPageStyle->getPropertyValue(UNO_NAME_HEADER_IS_ON) >>= bHeaderIsOn; if (!bHeaderIsOn) - xPageStyle->setPropertyValue(UNO_NAME_HEADER_IS_ON, uno::makeAny(true)); + return SfxWatermarkItem(); uno::Reference<text::XText> xHeaderText; xPageStyle->getPropertyValue(UNO_NAME_HEADER_TEXT) >>= xHeaderText; |