Index: source/core/fields/docufld.cxx =================================================================== --- source/core/fields/docufld.cxx (revision 268411) +++ source/core/fields/docufld.cxx (working copy) @@ -1951,6 +1951,9 @@ break; case FIELD_PROP_PAR2: ::GetString( rAny, sTxt ); + //#i100374# new string via api, delete complex text object so SwPostItNote picks up the new string + delete mpText; + mpText = 0; break; case FIELD_PROP_TEXT: DBG_ERROR("Not implemented!"); Index: source/core/unocore/unofield.cxx =================================================================== --- source/core/unocore/unofield.cxx (revision 268411) +++ source/core/unocore/unofield.cxx (working copy) @@ -1988,12 +1988,25 @@ // <- #111840# } pField->PutValue( rValue, pMap->nWID ); + + //#i100374# notify SwPostIt about new field content + if (RES_POSTITFLD== nWhich && pFmtFld) + { + const_cast(pFmtFld)->Broadcast(SwFmtFldHint( 0, SWFMTFLD_CHANGED )); + } + //#114571# changes of the expanded string have to be notified //#to the SwTxtFld if(RES_DBFLD == nWhich && pFmtFld->GetTxtFld()) { pFmtFld->GetTxtFld()->Expand(); } + + //#i100374# changing a document field should set the modify flag + SwDoc* pDoc = GetDoc(); + if (pDoc) + pDoc->SetModified(); + } else if(m_pProps) {