diff options
author | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2018-07-12 00:11:30 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2018-07-12 21:03:23 +0200 |
commit | 796ca86ce151b1887dd1dc2c6eac217d7835095d (patch) | |
tree | 36bc318d9fb97fb787e3e5e9bc9e4bbe34d121b0 | |
parent | 1ebbe4193f5a7ea928fd4940c2a62bcb773c4a00 (diff) |
Make setPagePrintSettings() accept IsLandscape again
Regression from 80c35d97b9b3b60a091aae77de0ffef38cbf531a - invert
the check for boost::optional validity.
Change-Id: If4e041e1fe349c1fcb2c74b2e5780bf57300486f
Reviewed-on: https://gerrit.libreoffice.org/57309
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
(cherry picked from commit 0853b05b1fabb231a7d57d811c5a06ee542d3295)
Reviewed-on: https://gerrit.libreoffice.org/57316
-rw-r--r-- | sw/source/uibase/uno/unotxdoc.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx index 0a22921c96e6..1db55d3c5831 100644 --- a/sw/source/uibase/uno/unotxdoc.cxx +++ b/sw/source/uibase/uno/unotxdoc.cxx @@ -1142,7 +1142,7 @@ void SwXTextDocument::setPagePrintSettings(const Sequence< beans::PropertyValue else if(sName == "IsLandscape") { auto b = o3tl::tryAccess<bool>(rVal); - bException = bool(b); + bException = !b; if (b) { aData.SetLandscape(*b); |