diff options
author | Pranam Lashkari <lpranam@collabora.com> | 2023-01-11 08:14:55 +0530 |
---|---|---|
committer | Pranam Lashkari <lpranam@collabora.com> | 2023-01-12 02:49:11 +0000 |
commit | 92deea6301a02f5530f17263f58402344f82013c (patch) | |
tree | 65aa03c74c36c5867db7f6dd28f699f320d06cc4 /sw/source/uibase/shells | |
parent | d07b1cc8148140bd3a78103da668d002b9d266ab (diff) |
sw: rename .uno:UpdateSections command fields
renamed fields name in JSON to be consistent with section insertion and getter
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Icca0be155542b7dc6df1b29e6c7d4191db8659ac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145315
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit cc4f876d05837679caa8c86ffd8be8598b8f429e)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145308
Diffstat (limited to 'sw/source/uibase/shells')
-rw-r--r-- | sw/source/uibase/shells/textsh1.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/shells/textsh1.cxx b/sw/source/uibase/shells/textsh1.cxx index c7fe4fc9c190..7e8edb2fc508 100644 --- a/sw/source/uibase/shells/textsh1.cxx +++ b/sw/source/uibase/shells/textsh1.cxx @@ -420,7 +420,7 @@ void UpdateSections(SfxRequest& rReq, SwWrtShell& rWrtSh) } comphelper::SequenceAsHashMap aMap(aSections[nSectionIndex++]); - OUString aSectionName = aMap["Section"].get<OUString>(); + OUString aSectionName = aMap["RegionName"].get<OUString>(); if (aSectionName != pFormat->GetName()) { const_cast<SwSectionFormat*>(pFormat)->SetFormatName(aSectionName, /*bBroadcast=*/true); @@ -441,7 +441,7 @@ void UpdateSections(SfxRequest& rReq, SwWrtShell& rWrtSh) rIDCO.DeleteAndJoin(*pCursorPos); rWrtSh.EndSelect(); - OUString aSectionText = aMap["SectionText"].get<OUString>(); + OUString aSectionText = aMap["Content"].get<OUString>(); SwTranslateHelper::PasteHTMLToPaM(rWrtSh, pCursorPos, aSectionText.toUtf8(), true); } } |