[Libreoffice-commits] core.git: Branch 'libreoffice-6-0' - sw/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Jul 18 15:25:06 UTC 2018


 sw/source/uibase/uno/unotxdoc.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit cc124e47db9e0302b5a07ace961b061b8dca15ad
Author:     Thorsten Behrens <Thorsten.Behrens at CIB.de>
AuthorDate: Thu Jul 12 00:11:30 2018 +0200
Commit:     Miklos Vajna <vmiklos at collabora.co.uk>
CommitDate: Wed Jul 18 17:24:45 2018 +0200

    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 at CIB.de>
    (cherry picked from commit 0853b05b1fabb231a7d57d811c5a06ee542d3295)
    Reviewed-on: https://gerrit.libreoffice.org/57315
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>

diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx
index a6431a67975f..9bc330c09532 100644
--- a/sw/source/uibase/uno/unotxdoc.cxx
+++ b/sw/source/uibase/uno/unotxdoc.cxx
@@ -1130,7 +1130,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);


More information about the Libreoffice-commits mailing list