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

New commits:
commit ad100ef0ee2fa3e6cc1a2fedb38e799cb728a5de
Author:     Miklos Vajna <vmik...@collabora.com>
AuthorDate: Mon Jan 9 09:52:32 2023 +0100
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Tue Jan 10 15:03:12 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.
    
    (cherry picked from commit 8336c61ba059551cb74df5ec53d2b45a3cf41814)
    
    Change-Id: Icd8bc856e5d50b995fa92559c873a50b48b98ba8
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145238
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Justin Luth <jl...@mail.com>
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>

diff --git a/sw/source/uibase/shells/textfld.cxx 
b/sw/source/uibase/shells/textfld.cxx
index 93ee93458b5d..8d23221eaa53 100644
--- a/sw/source/uibase/shells/textfld.cxx
+++ b/sw/source/uibase/shells/textfld.cxx
@@ -853,6 +853,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)
@@ -1004,6 +1006,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