sw/source/uibase/shells/textfld.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 8336c61ba059551cb74df5ec53d2b45a3cf41814
Author:     Miklos Vajna <vmik...@collabora.com>
AuthorDate: Mon Jan 9 09:52:32 2023 +0100
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Mon Jan 9 15:48:35 2023 +0000

    sw: document FN_UPDATE_TEXT_FORMFIELD and FN_UPDATE_TEXT_FORMFIELDS
    
    If you don't read the commit message or the code, it wasn't really
    obvious that FN_UPDATE_TEXT_FORMFIELD works based on the current cursor.
    
    Change-Id: Icd8bc856e5d50b995fa92559c873a50b48b98ba8
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145189
    Tested-by: Jenkins
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>

diff --git a/sw/source/uibase/shells/textfld.cxx 
b/sw/source/uibase/shells/textfld.cxx
index dffea8e924ee..71e57ba0ae47 100644
--- a/sw/source/uibase/shells/textfld.cxx
+++ b/sw/source/uibase/shells/textfld.cxx
@@ -862,6 +862,8 @@ FIELD_INSERT:
     break;
     case FN_UPDATE_TEXT_FORMFIELDS:
     {
+        // This updates multiple fieldmarks in a document, based on their 
field name & field command
+        // prefix.
         OUString aFieldType;
         const SfxStringItem* pFieldType = 
rReq.GetArg<SfxStringItem>(FN_PARAM_1);
         if (pFieldType)
@@ -1013,6 +1015,7 @@ FIELD_INSERT:
     break;
     case FN_UPDATE_TEXT_FORMFIELD:
     {
+        // This updates a single fieldmarks under the current cursor.
         OUString aFieldType;
         const SfxStringItem* pFieldType = 
rReq.GetArg<SfxStringItem>(FN_PARAM_1);
         if (pFieldType)

Reply via email to