diff options
author | Ariel Constenla-Haile <arielch@apache.org> | 2011-12-29 03:34:21 +0000 |
---|---|---|
committer | Ariel Constenla-Haile <arielch@apache.org> | 2011-12-29 03:34:21 +0000 |
commit | f738f00e7a97627fe41232c7e1713152baae90c3 (patch) | |
tree | c43da916994a111100d5d4a869cac0b4b7f00ce6 /sc | |
parent | cd7c6bde66fea3881c120bc603291845f60eceae (diff) |
i118696 - i118697 - Fix some Sheet Tab Color API issues
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/unoobj/cellsuno.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx index 3a1eb5a08a8b..50fc86b428bb 100644 --- a/sc/source/ui/unoobj/cellsuno.cxx +++ b/sc/source/ui/unoobj/cellsuno.cxx @@ -8543,11 +8543,12 @@ void ScTableSheetObj::SetOnePropertyValue( const SfxItemPropertySimpleEntry* pEn } else if ( pEntry->nWID == SC_WID_UNO_TABCOLOR ) { - sal_Int32 nColor = COL_AUTO; - if (aValue >>= nColor) + sal_Int32 nColor; + 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 ( pDoc->GetTabBgColor( nTab ) != aColor ) + aFunc.SetTabBgColor( nTab, aColor, sal_True, sal_True ); } } else if ( pEntry->nWID == SC_WID_UNO_CODENAME ) |