[Libreoffice-commits] core.git: cui/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Wed Apr 29 07:47:25 UTC 2020
cui/source/dialogs/SpellDialog.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 0877e320b8498f3ee3875f2730a6040f708154b4
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Apr 28 16:24:05 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Apr 29 09:46:50 2020 +0200
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 at 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 at redhat.com>
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)
More information about the Libreoffice-commits
mailing list