sw/source/core/layout/objectformattertxtfrm.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 2d6addb180ad30383f4aaec198c22ccbf936fa87 Author: Michael Stahl <michael.st...@allotropia.de> AuthorDate: Mon Oct 21 12:02:01 2024 +0200 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Mon Oct 21 15:16:57 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 diff --git a/sw/source/core/layout/objectformattertxtfrm.cxx b/sw/source/core/layout/objectformattertxtfrm.cxx index a06cb6b679fb..2c0ea38aae43 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");