diff options
author | Justin Luth <justin_luth@sil.org> | 2022-04-07 08:30:54 +0200 |
---|---|---|
committer | Justin Luth <jluth@mail.com> | 2022-04-14 13:04:30 +0200 |
commit | 206efef78ea367de76f000a1760dbd8bc7785b0c (patch) | |
tree | 8e8b3c294fb35ae7e6cfaae2a64aed338bd937e1 /sw | |
parent | dfafd186f5884bfb7a19582b36677a051bde8101 (diff) |
tdf#148380 sw ms export: DI_EDIT is simply EDITTIME
There can be no author related to total editing time,
and SAVEDATE is the modified date, so this was all
completely bogus code.
No unit tests hit SAVEDATE on a make check assert.
This all came from very early 2000 code,
at which point DI_CHANGE only handled AUTHOR,
so likely things were very confused back then,
and when SAVEDATE was connected with DI_CHANGE in 2003,
they failed to remove it from DI_EDIT.
Change-Id: Ib9108a59128d5c7fa11d350c58005a925678cb4b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132665
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/ww8atr.cxx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sw/source/filter/ww8/ww8atr.cxx b/sw/source/filter/ww8/ww8atr.cxx index 551152e875f8..72bdc213f4b3 100644 --- a/sw/source/filter/ww8/ww8atr.cxx +++ b/sw/source/filter/ww8/ww8atr.cxx @@ -2932,6 +2932,9 @@ void AttributeOutputBase::TextField( const SwFormatField& rField ) case DI_DOCNO: eField = ww::eREVNUM; break; + case DI_EDIT: + eField = ww::eEDITTIME; + break; case DI_CREATE: if (DI_SUB_AUTHOR == (nSubType & DI_SUB_MASK)) eField = ww::eAUTHOR; @@ -2954,13 +2957,6 @@ void AttributeOutputBase::TextField( const SwFormatField& rField ) GetExport().GetNumberFormat(*pField, sStr)) eField = ww::ePRINTDATE; break; - case DI_EDIT: - if( DI_SUB_AUTHOR != (nSubType & DI_SUB_MASK ) && - GetExport().GetNumberFormat( *pField, sStr )) - eField = ww::eSAVEDATE; - else - eField = ww::eEDITTIME; - break; case DI_CUSTOM: eField = ww::eDOCPROPERTY; { |