[Libreoffice-commits] core.git: Branch 'libreoffice-7-2' - sw/source
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Tue Jul 13 08:46:48 UTC 2021
sw/source/core/txtnode/thints.cxx | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
New commits:
commit edf806974728a8f4da3f474eb8c04a55521c0a86
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Mon Jul 12 12:48:52 2021 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Tue Jul 13 10:46:16 2021 +0200
try to restore SwpHints::MergePortions (2nd attempt)
seems
commit 4a93efcf6e7982146fb71e4d32760a07a0f984c2
Author: Noel Grandin <noelgrandin at gmail.com>
Date: Thu Jul 8 15:16:29 2021 +0200
try to restore SwpHints::MergePortions...
was not good enough
Change-Id: Ic5b9d9d7081ab3bc814388332672ff950fb84802
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118772
Reviewed-by: Michael Stahl <michael.stahl at allotropia.de>
Tested-by: Jenkins
(cherry picked from commit 6d235b1a87c281389daad6e4c653e75810e749a8)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118795
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/sw/source/core/txtnode/thints.cxx b/sw/source/core/txtnode/thints.cxx
index 6d448885abdb..d67ba3250566 100644
--- a/sw/source/core/txtnode/thints.cxx
+++ b/sw/source/core/txtnode/thints.cxx
@@ -2919,14 +2919,11 @@ static MergeResult lcl_Compare_Attributes(
SfxItemIter iter1(rSet1);
SfxItemIter iter2(rSet2);
for (SfxPoolItem const* pItem1 = iter1.GetCurItem(),
- * pItem2 = iter2.GetCurItem();
- pItem1 && pItem2;
- pItem1 = iter1.NextItem(),
- pItem2 = iter2.NextItem())
+ * pItem2 = iter2.GetCurItem();;)
{
- if (pItem1->Which() == RES_CHRATR_RSID)
+ if (pItem1 && pItem1->Which() == RES_CHRATR_RSID)
pItem1 = iter1.NextItem();
- if (pItem2->Which() == RES_CHRATR_RSID)
+ if (pItem2 && pItem2->Which() == RES_CHRATR_RSID)
pItem2 = iter2.NextItem();
if (!pItem1 && !pItem2)
{
@@ -2942,8 +2939,9 @@ static MergeResult lcl_Compare_Attributes(
assert(IsInvalidItem(pItem1) || IsInvalidItem(pItem2) || pItem1->Which() != pItem2->Which() || *pItem1 != *pItem2);
return DIFFER;
}
+ pItem1 = iter1.NextItem();
+ pItem2 = iter2.NextItem();
}
- eMerge = DIFFER_ONLY_RSID;
}
++aIter1;
++aIter2;
More information about the Libreoffice-commits
mailing list