diff options
author | Gülşah Köse <gulsah.kose@collabora.com> | 2021-04-27 00:33:18 +0300 |
---|---|---|
committer | Gülşah Köse <gulsah.kose@collabora.com> | 2021-05-12 14:35:47 +0200 |
commit | b2f8032c43e298525ab7897f13baad9017a969ff (patch) | |
tree | 0c34bbe6948b3b9705daaa25e0081fd27feff9aa /sw | |
parent | 5aa60be574ece81b27c8f63e6e809871c694dba0 (diff) |
Fix broken TOX in Online.
1. Open a German file in the Online
2. Insert a new paragraph, and change its style to "Ueberschrift 1"
3. Go to the Table of Content, and choose "Update Index"
4. See the index got destroyed, and when you look at the list of
styles, the "Ueberschrift 1" has disappeared, and "Heading 1"
appeared instead.
This reverts part of:
commit ca435be45f316120b9df6c9d547b781ed975817d
writer: handle styles in multiple languages for online
Change-Id: I82e46b3cf7824df6efdbb4b2a16716153ddae0df
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114683
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115273
Tested-by: Jenkins
Reviewed-by: Gülşah Köse <gulsah.kose@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/edit/edfcol.cxx | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/sw/source/core/edit/edfcol.cxx b/sw/source/core/edit/edfcol.cxx index 03d5b1ccebd4..961c5062a5f3 100644 --- a/sw/source/core/edit/edfcol.cxx +++ b/sw/source/core/edit/edfcol.cxx @@ -2197,16 +2197,6 @@ void SwEditShell::SetTextFormatColl(SwTextFormatColl *pFormat, SwRewriter aRewriter; - // in online we can have multiple languages, use universal name then - if (comphelper::LibreOfficeKit::isActive()) - { - OUString aName; - sal_uInt16 nId = SwStyleNameMapper::GetPoolIdFromUIName(pLocal->GetName(), SwGetPoolIdFromName::TxtColl); - SwStyleNameMapper::FillProgName(nId, aName); - if (!aName.isEmpty()) - pLocal->SetName(aName); - } - aRewriter.AddRule(UndoArg1, pLocal->GetName()); GetDoc()->GetIDocumentUndoRedo().StartUndo(SwUndoId::SETFMTCOLL, &aRewriter); |