Kaydet (Commit) 0853b05b authored tarafından Thorsten Behrens's avatar Thorsten Behrens

Make setPagePrintSettings() accept IsLandscape again

Regression from 80c35d97 - invert
the check for boost::optional validity.

Change-Id: If4e041e1fe349c1fcb2c74b2e5780bf57300486f
Reviewed-on: https://gerrit.libreoffice.org/57309
Tested-by: Jenkins
Reviewed-by: 's avatarThorsten Behrens <Thorsten.Behrens@CIB.de>
üst cd6a441a
......@@ -1147,7 +1147,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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment