Kaydet (Commit) 6baca4fc authored tarafından Markus Mohrhard's avatar Markus Mohrhard

don't need to get this one for each cell

Change-Id: I9aab49c7604add1d574949909f0ab8b867341b27
üst e794e507
...@@ -362,6 +362,7 @@ void ScDocument::FillInfo( ScTableInfo& rTabInfo, SCCOL nX1, SCROW nY1, SCCOL nX ...@@ -362,6 +362,7 @@ void ScDocument::FillInfo( ScTableInfo& rTabInfo, SCCOL nX1, SCROW nY1, SCCOL nX
} }
} }
ScConditionalFormatList* pCondFormList = GetCondFormList(nTab);
for (nArrX=0; nArrX<=nX2+2; nArrX++) // links & rechts + 1 for (nArrX=0; nArrX<=nX2+2; nArrX++) // links & rechts + 1
{ {
nX = (nArrX>0) ? nArrX-1 : MAXCOL+1; // negativ -> ungueltig nX = (nArrX>0) ? nArrX-1 : MAXCOL+1; // negativ -> ungueltig
...@@ -476,7 +477,6 @@ void ScDocument::FillInfo( ScTableInfo& rTabInfo, SCCOL nX1, SCROW nY1, SCCOL nX ...@@ -476,7 +477,6 @@ void ScDocument::FillInfo( ScTableInfo& rTabInfo, SCCOL nX1, SCROW nY1, SCCOL nX
sal_uLong nConditional = ((const SfxUInt32Item&)pPattern-> sal_uLong nConditional = ((const SfxUInt32Item&)pPattern->
GetItem(ATTR_CONDITIONAL)).GetValue(); GetItem(ATTR_CONDITIONAL)).GetValue();
ScConditionalFormatList* pCondFormList = GetCondFormList(nTab);
const ScConditionalFormat* pCondForm = NULL; const ScConditionalFormat* pCondForm = NULL;
if ( nConditional && pCondFormList ) if ( nConditional && pCondFormList )
pCondForm = pCondFormList->GetFormat( nConditional ); pCondForm = pCondFormList->GetFormat( nConditional );
......
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