diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-02-10 16:59:33 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-02-10 21:31:14 +0100 |
commit | 428ab490cb39c43c88bfc0e06450bfc91ffdcff6 (patch) | |
tree | e83b7a81e6d41a2abe86c7164681916c26ecfb8f | |
parent | edab3a9fd243c238f840db84af31c39c3617eb8c (diff) |
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.mcnamara@collabora.com>
-rw-r--r-- | sc/source/core/data/column2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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(), |