diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-01-05 05:18:04 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-01-05 05:18:31 -0600 |
commit | a5e6ef23f8e0040b2e8543c838abea54072f2497 (patch) | |
tree | d3cd70e713b4006172462d3dd68710f576b309ea /sc | |
parent | f42e17d83b5c4f5343c8b113ef2d8dcbf96f8a20 (diff) |
use the docshell to change tab attributes. don't do it directly
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/unoobj/cellsuno.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx index 6be02395d4da..7e75ea871507 100644 --- a/sc/source/ui/unoobj/cellsuno.cxx +++ b/sc/source/ui/unoobj/cellsuno.cxx @@ -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 ) |