[Libreoffice-commits] .: sc/source
Norbert Thiebaud
nthiebaud at kemper.freedesktop.org
Thu Jan 5 03:19:10 PST 2012
sc/source/ui/unoobj/cellsuno.cxx | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
New commits:
commit a5e6ef23f8e0040b2e8543c838abea54072f2497
Author: Norbert Thiebaud <nthiebaud at 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 )
More information about the Libreoffice-commits
mailing list