sc/source/core/data/column2.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 428ab490cb39c43c88bfc0e06450bfc91ffdcff6 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Sat Feb 10 16:59:33 2024 +0000 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Sat Feb 10 21:31:14 2024 +0100 cid#1591764 silence Double free Change-Id: I21af2580f35d716ed32d565f07f84b4bbfdd2507 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163218 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx index 4d7ef70448ae..e5d69434a761 100644 --- a/sc/source/core/data/column2.cxx +++ b/sc/source/core/data/column2.cxx @@ -1072,7 +1072,7 @@ void ScColumn::GetOptimalHeight( if (rCxt.isForceAutoSize() || !(rDocument.GetRowFlags(nRow, nTab) & CRFlags::ManualSize) ) { aOptions.aPattern.setScPatternAttr(pPattern); - aOldPattern.setScPatternAttr(pPattern); + aOldPattern.setScPatternAttr(aOptions.aPattern.getScPatternAttr()); sal_uInt16 nHeight = static_cast<sal_uInt16>( std::min( GetNeededSize( nRow, rCxt.getOutputDevice(), rCxt.getPPTX(), rCxt.getPPTY(),