sc/source/ui/unoobj/cellsuno.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
New commits: commit a5e6ef23f8e0040b2e8543c838abea54072f2497 Author: Norbert Thiebaud <nthieb...@gmail.com> Date: Thu Jan 5 05:18:04 2012 -0600 use the docshell to change tab attributes. don't do it directly diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx index 6be0239..7e75ea8 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 ) _______________________________________________ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits