diff options
author | Joren De Cuyper <jorendc@libreoffice.org> | 2015-05-15 20:11:52 +0200 |
---|---|---|
committer | Joren De Cuyper <jorendc@libreoffice.org> | 2015-05-20 10:50:00 +0000 |
commit | fcc7ba441ec8e5116bbcc08c88b5ddb7c892c988 (patch) | |
tree | 6ebc434293d6081683c65b158eb1191421bc69b1 /sw/source/uibase | |
parent | 2b5d533651333a27dd46e494fcd1a016483bb0b1 (diff) |
tdf#85911 docx: export comment initials
Change-Id: I1437c197312911a15a50715235d840b24117bfba
Reviewed-on: https://gerrit.libreoffice.org/15742
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Joren De Cuyper <jorendc@libreoffice.org>
Diffstat (limited to 'sw/source/uibase')
-rw-r--r-- | sw/source/uibase/fldui/fldmgr.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/uibase/fldui/fldmgr.cxx b/sw/source/uibase/fldui/fldmgr.cxx index 5a1d5e49a27b..80308ff785b5 100644 --- a/sw/source/uibase/fldui/fldmgr.cxx +++ b/sw/source/uibase/fldui/fldmgr.cxx @@ -78,6 +78,7 @@ #include <tox.hxx> #include <misc.hrc> #include <cnttab.hxx> +#include <unotools/useroptions.hxx> using namespace com::sun::star::uno; using namespace com::sun::star::container; @@ -773,13 +774,14 @@ bool SwFldMgr::InsertFld( { // ATTENTION this field is inserted by a separate dialog case TYP_POSTITFLD: { + SvtUserOptions aUserOpt; SwPostItFieldType* pType = static_cast<SwPostItFieldType*>(pCurShell->GetFldType(0, RES_POSTITFLD)); SwPostItField* pPostItField = new SwPostItField( pType, rData.m_sPar1, // author rData.m_sPar2, // content - OUString(), // author's initials + aUserOpt.GetID(), // author's initials OUString(), // name DateTime(DateTime::SYSTEM) ); pFld = pPostItField; |