Kaydet (Commit) a5e6ef23 authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

use the docshell to change tab attributes. don't do it directly

üst f42e17d8
......@@ -8509,8 +8509,11 @@ void ScTableSheetObj::SetOnePropertyValue( const SfxItemPropertySimpleEntry* pEn
sal_Int32 nColor = COL_AUTO;
if (aValue >>= nColor)
{
if (static_cast<ColorData>(nColor) != COL_AUTO)
pDoc->SetTabBgColor(nTab, Color(static_cast<ColorData>(nColor)));
const Color aColor(static_cast<ColorData>(nColor));
if (aColor != pDoc->GetTabBgColor(nTab))
{
aFunc.SetTabBgColor(nTab, aColor, true, true);
}
}
}
else if ( pEntry->nWID == SC_WID_UNO_CODENAME )
......
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