sw/source/core/layout/objectformattertxtfrm.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 0633e6922ea3ad4503c7659e6f4f0188a5caa3e5 Author: Michael Stahl <michael.st...@allotropia.de> AuthorDate: Mon Oct 21 12:02:01 2024 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Mon Oct 21 17:53:15 2024 +0200 tdf#163486 sw: PVS: identical sub-expressions Copypasta in commit c799de145f7e289f31e3669646e5bd12814e6c5e, we want to compare the rows where the 2 objects are anchored. Change-Id: Ifdf267b8d70d6410ce50a507783d284ac128c1aa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175326 Reviewed-by: Michael Stahl <michael.st...@allotropia.de> Tested-by: Jenkins (cherry picked from commit 2d6addb180ad30383f4aaec198c22ccbf936fa87) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175315 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sw/source/core/layout/objectformattertxtfrm.cxx b/sw/source/core/layout/objectformattertxtfrm.cxx index 5e3557a4ecd9..1fdad26a10ec 100644 --- a/sw/source/core/layout/objectformattertxtfrm.cxx +++ b/sw/source/core/layout/objectformattertxtfrm.cxx @@ -733,7 +733,7 @@ bool SwObjectFormatterTextFrame::CheckMovedFwdCondition( // "below" and the row could potentially be split // TODO refine check if needed if (!pInBodyFrameAnchoredObj->IsInTab() - || FindTopLevelRowFrame(pInBodyFrameAnchoredObj) + || FindTopLevelRowFrame(pInBodyFrameObj) != FindTopLevelRowFrame(pInBodyFrameAnchoredObj)) { // anchored in next chain on same page SAL_INFO("sw.layout", "SwObjectFormatterTextFrame::CheckMovedFwdCondition(): o_rbPageHasFlysAnchoredBelowThis because next chain on same page");