summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorLászló Németh <nemeth@numbertext.org>2021-12-17 18:56:37 +0100
committerLászló Németh <nemeth@numbertext.org>2021-12-17 22:11:01 +0100
commit213173edc5e47bb6da11f9a301f4dca71854a48c (patch)
tree1e2e5ae313096b93b29b4d455a04f3bb378f88d2 /sw
parent68264c4d24f50dae3435ca76e5eafc4c069a0cc1 (diff)
"tdf#146244 sw: update HasTextChangesOnly in modified rows". Change-Id: If0ce16681704fed41ab8d6e6b23033b82487f503 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127014 Tested-by: Jenkins Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/table/swtable.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/core/table/swtable.cxx b/sw/source/core/table/swtable.cxx
index 9033fdccbac5..183775c42ecc 100644
--- a/sw/source/core/table/swtable.cxx
+++ b/sw/source/core/table/swtable.cxx
@@ -1723,8 +1723,10 @@ SwRedlineTable::size_type SwTableLine::UpdateTextChangesOnly(SwRedlineTable::siz
nRet = SwRedlineTable::npos;
// set TextChangesOnly = true to remove the tracked deletion
SvxPrintItem aUnsetTracking(RES_PRINT, true);
- SwFrameFormat *pNew = const_cast<SwTableLine*>(this)->ClaimFrameFormat();
- pNew->SetFormatAttr( aUnsetTracking );
+ SwFrameFormat *pFormat = const_cast<SwTableLine*>(this)->ClaimFrameFormat();
+ pFormat->LockModify();
+ pFormat->SetFormatAttr( aUnsetTracking );
+ pFormat->UnlockModify();
}
}