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

ithe cond format data is no longer stored as SfxUInt32Item

Change-Id: I41c19f213de73052bcfd18eada35ed14dfd9a172
üst 0db48190
...@@ -700,7 +700,12 @@ const SfxItemSet* ScDocument::GetCondResult( SCCOL nCol, SCROW nRow, SCTAB nTab ...@@ -700,7 +700,12 @@ const SfxItemSet* ScDocument::GetCondResult( SCCOL nCol, SCROW nRow, SCTAB nTab
ScConditionalFormat* ScDocument::GetCondFormat( ScConditionalFormat* ScDocument::GetCondFormat(
SCCOL nCol, SCROW nRow, SCTAB nTab ) const SCCOL nCol, SCROW nRow, SCTAB nTab ) const
{ {
sal_uLong nIndex = ((const SfxUInt32Item*)GetAttr(nCol,nRow,nTab,ATTR_CONDITIONAL))->GetValue(); sal_uInt32 nIndex = 0;
const std::vector<sal_uInt32>& rCondFormats = static_cast<const ScCondFormatItem*>(GetAttr(nCol, nRow, nTab, ATTR_CONDITIONAL))->GetCondFormatData();
if(!rCondFormats.empty())
nIndex = rCondFormats[0];
if (nIndex) if (nIndex)
{ {
ScConditionalFormatList* pCondFormList = GetCondFormList(nTab); ScConditionalFormatList* pCondFormList = GetCondFormList(nTab);
......
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