sc/source/core/data/column2.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit db96cd9d410b34e235b5de772540d08537298669 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Fri Mar 17 15:02:04 2023 +0000 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Fri Mar 17 17:20:08 2023 +0000 Move the variable into the scope where it's used Change-Id: Ib49ba81686199eea045d9f4eca6c8978646694f6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149027 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx index 4f5c717cec4e..1e879df34870 100644 --- a/sc/source/core/data/column2.cxx +++ b/sc/source/core/data/column2.cxx @@ -734,10 +734,10 @@ sal_uInt16 ScColumn::GetOptimalColWidth( // All cells are empty. return nOldWidth; - sc::SingleColumnSpanSet aSpanSet(GetDoc().GetSheetLimits()); sc::SingleColumnSpanSet::SpansType aMarkedSpans; if (pMarkData && (pMarkData->IsMarked() || pMarkData->IsMultiMarked())) { + sc::SingleColumnSpanSet aSpanSet(GetDoc().GetSheetLimits()); aSpanSet.scan(*pMarkData, nTab, nCol); aSpanSet.getSpans(aMarkedSpans); }