sw/inc/docufld.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 2e6acddd815bca6261634b69b015c6deead74b58
Author:     Justin Luth <justin_l...@sil.org>
AuthorDate: Wed Apr 6 09:28:49 2022 +0200
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Fri Apr 8 15:22:05 2022 +0200

    tdf#147861 sw ms export: DI_SUB_MASK must exclude FIXED now
    
    This is a follow-up to
    7.4 commit daef39352b008fc1f903fd8c09288ff5e772fa42
    
    There is only one place in which DI_SUB_MASK is used,
    so I'm just changing it to what it could have always been,
    since it never was actually used to mask out DI_SUB_FIXED.
    Otherwise, I might have made this a MASK2 or whatever.
    
    The issue here is that AUTHOR was not being recognized
    when it was paired with FIXED, so every FIXEDFLD was
    ended up being considered as a date/time.
    
    In practice, this didn't really change anything
    because bWriteExpand already ignored any of
    these areas of the code. It is only when I turn off
    bWriteExpand as I implement fixes that I am seeing
    the wrong field type being created.
    
    And regardless, since the field is FIXED, the visible
    content remains the same anyway (until someone in MS Word
    refreshes the field with F9).
    
    Both Author and date have the same field name ":Created"
    so I couldn't super easily test this.
    
    Change-Id: Icd2d0be2d3fbe24dc4763e0e25801569bcca471b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132660
    Tested-by: Jenkins
    Reviewed-by: Justin Luth <jl...@mail.com>
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>
    (cherry picked from commit e61eed211766f26a3896c1d912dc7349abbe823d)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132698
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>

diff --git a/sw/inc/docufld.hxx b/sw/inc/docufld.hxx
index 9cad6b71f77c..f1023e372970 100644
--- a/sw/inc/docufld.hxx
+++ b/sw/inc/docufld.hxx
@@ -84,7 +84,7 @@ namespace nsSwDocInfoSubType
     const SwDocInfoSubType DI_SUB_TIME      = 0x0200;
     const SwDocInfoSubType DI_SUB_DATE      = 0x0300;
     const SwDocInfoSubType DI_SUB_FIXED     = 0x1000;
-    const SwDocInfoSubType DI_SUB_MASK      = 0xff00;
+    const SwDocInfoSubType DI_SUB_MASK      = 0x0f00;
 }
 
 enum SwPageNumSubType

Reply via email to