Kaydet (Commit) 8f0668a0 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

limit scope of another variable in ScDocument::FillInfo

Change-Id: Ic53bcaa5e33f221a643de4e854990769b5c04a74
Reviewed-on: https://gerrit.libreoffice.org/23633Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst 36eec4d1
......@@ -465,7 +465,6 @@ void ScDocument::FillInfo(
ScAttrArray* pThisAttrArr = pThisCol->pAttrArray; // Attribute
nArrRow = 0;
const ScPatternAttr* pPattern;
SCROW nCurRow=nRow1; // single rows
if (nCurRow>0)
--nCurRow; // 1 more on top
......@@ -478,7 +477,7 @@ void ScDocument::FillInfo(
do
{
nThisRow=pThisAttrArr->pData[nIndex].nRow; // End of range
pPattern=pThisAttrArr->pData[nIndex].pPattern;
const ScPatternAttr* pPattern=pThisAttrArr->pData[nIndex].pPattern;
const SvxBrushItem* pBackground = static_cast<const SvxBrushItem*>(
&pPattern->GetItem(ATTR_BACKGROUND));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment