[Libreoffice-commits] core.git: sd/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sat Jul 28 06:41:11 UTC 2018


 sd/source/ui/unoidl/unopage.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 93baa280670367ef6246d837080706f2c80eab0b
Author:     Noel Grandin <noelgrandin at gmail.com>
AuthorDate: Fri Jul 27 21:20:13 2018 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Sat Jul 28 08:40:49 2018 +0200

    tdf#118948 - Date format in Impress header/footer is lost when saving
    
    regression from
        commit 7d14555ef7e867c5b1a0e195e3ef056885697c59
        convert SvxDateFormat to scoped enum
    
    Change-Id: I9d365c710a20054e249433f54635068f713afa72
    Reviewed-on: https://gerrit.libreoffice.org/58202
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/sd/source/ui/unoidl/unopage.cxx b/sd/source/ui/unoidl/unopage.cxx
index 8749fa94d287..5afbce097cee 100644
--- a/sd/source/ui/unoidl/unopage.cxx
+++ b/sd/source/ui/unoidl/unopage.cxx
@@ -1262,7 +1262,7 @@ Any SAL_CALL SdGenericDrawPage::getPropertyValue( const OUString& PropertyName )
     case WID_PAGE_DATETIMEFORMAT:
         {
             auto const & rSettings = GetPage()->getHeaderFooterSettings();
-            sal_Int32 x = static_cast<sal_Int32>(rSettings.meDateFormat) & (static_cast<sal_Int32>(rSettings.meTimeFormat) << 4);
+            sal_Int32 x = static_cast<sal_Int32>(rSettings.meDateFormat) | (static_cast<sal_Int32>(rSettings.meTimeFormat) << 4);
             aAny <<= x;
         }
         break;


More information about the Libreoffice-commits mailing list