summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Power <noel.power@novell.com>2011-04-19 14:35:52 +0100
committerNoel Power <noel.power@novell.com>2011-04-20 13:03:42 +0100
commitd80516ee8243739aa87b46799970bc3944cf60cb (patch)
tree87c67beca340ef40fdb0f39e40910107fd45521f
parent5dac552a112ac097b56baa82d69bfb9ec4077516 (diff)
some docx field import/export tweaks
import/export ( USERNAME / USERINITIALS ) - supported now and alligned with binary import import/export ( AUTHOR / DocumentProperty.Author ) - AUTHOR is now imported as DocumentInfo.Created, DocProperty.Author is imported as a custom property, DocumentInfo.Created is exported as AUTHOR fix docx export of COMMENTS fix docx import of CREATEDATE, fix docx import of DocProperty.CreateTime fix docx import of DocProperty.LastSavedTime fix docx import of DocProperty.TotalEditingTime ( format still not right )
-rw-r--r--sw/source/filter/ww8/ww8atr.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8atr.cxx b/sw/source/filter/ww8/ww8atr.cxx
index 9a51005d08..9448cca6b6 100644
--- a/sw/source/filter/ww8/ww8atr.cxx
+++ b/sw/source/filter/ww8/ww8atr.cxx
@@ -2629,7 +2629,7 @@ void AttributeOutputBase::TextField( const SwFmtFld& rField )
case RES_AUTHORFLD:
{
ww::eField eFld =
- (AF_SHORTCUT & nSubType ? ww::eUSERINITIALS : ww::eUSERNAME);
+ (AF_SHORTCUT & pFld->GetFormat() ? ww::eUSERINITIALS : ww::eUSERNAME);
GetExport().OutputField(pFld, eFld, FieldString(eFld));
}
break;