diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-04-28 16:24:05 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-04-29 09:46:50 +0200 |
commit | 0877e320b8498f3ee3875f2730a6040f708154b4 (patch) | |
tree | edec425b6ec8106c59d434601c846a16c65dd9ca /cui | |
parent | 43dc3934822fa62bb44ebe2da65240637f38e8d8 (diff) |
tdf#132288 preservation of footnote depends on reverse iteration
like TextCharAttribList::FindAttrib does which spell checking
used before
commit 243b5b392906042ab03800e0b5765e6f3513372c
Author: Caolán McNamara <caolanm@redhat.com>
Date: Fri Jun 14 21:56:44 2019 +0100
weld SpellDialog
converted to use an EditEngine instead of a TextEngine in order to
be able to host it in a native widget
Change-Id: I190429fdab6e32572f2d6df94ab8e375bb4c0c61
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93085
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/SpellDialog.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx index 186f6d7e7188..e1de0c8e0e8f 100644 --- a/cui/source/dialogs/SpellDialog.cxx +++ b/cui/source/dialogs/SpellDialog.cxx @@ -1124,8 +1124,9 @@ namespace { const EECharAttrib* FindCharAttrib(int nPosition, sal_uInt16 nWhich, std::vector<EECharAttrib>& rAttribList) { - for (const auto& rTextAtr : rAttribList) + for (auto it = rAttribList.rbegin(); it != rAttribList.rend(); ++it) { + const auto& rTextAtr = *it; if (rTextAtr.pAttr->Which() != nWhich) continue; if (rTextAtr.nStart <= nPosition && rTextAtr.nEnd >= nPosition) |