diff options
author | Juergen Funk <juergen.funk_ml@cib.de> | 2024-07-17 05:23:30 +0200 |
---|---|---|
committer | Thorsten Behrens <thorsten.behrens@allotropia.de> | 2024-07-25 00:49:55 +0200 |
commit | e8a271dd53d605a835c493eef5c34e4fb077f16d (patch) | |
tree | f91f96d75f408a2d0dfe8b7b6f3fbe00617c0dc6 /sw/source/uibase/shells/textfld.cxx | |
parent | ee9da9e3e3e141b304512e7fb7934eac891670da (diff) |
tdf#160163 reset placeholder in Text field when empty
for all the Text field made a global define
of the NonBreakSpaces mask
Change-Id: I7107f941ee9008415325aefe5487555d91dbf1ab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170596
Tested-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Diffstat (limited to 'sw/source/uibase/shells/textfld.cxx')
-rw-r--r-- | sw/source/uibase/shells/textfld.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sw/source/uibase/shells/textfld.cxx b/sw/source/uibase/shells/textfld.cxx index a31d249093d2..2e02679441e1 100644 --- a/sw/source/uibase/shells/textfld.cxx +++ b/sw/source/uibase/shells/textfld.cxx @@ -811,7 +811,6 @@ FIELD_INSERT: if(pCursorPos) { // Insert five En Space into the text field so the field has extent - static constexpr OUStringLiteral vEnSpaces = u"\u2002\u2002\u2002\u2002\u2002"; OUString aFieldResult(vEnSpaces); const SfxStringItem* pFieldResult = rReq.GetArg<SfxStringItem>(FN_PARAM_3); if (pFieldResult) @@ -929,8 +928,7 @@ FIELD_INSERT: if(pCursorPos) { // Insert five enspaces into the text field so the field has extent - sal_Unicode vEnSpaces[ODF_FORMFIELD_DEFAULT_LENGTH] = {8194, 8194, 8194, 8194, 8194}; - bool bSuccess = rSh.GetDoc()->getIDocumentContentOperations().InsertString(*pCursorPos, OUString(vEnSpaces, ODF_FORMFIELD_DEFAULT_LENGTH)); + bool bSuccess = rSh.GetDoc()->getIDocumentContentOperations().InsertString(*pCursorPos, vEnSpaces); if(bSuccess) { IDocumentMarkAccess* pMarksAccess = rSh.GetDoc()->getIDocumentMarkAccess(); |