incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arie...@apache.org
Subject svn commit: r1225428 - /incubator/ooo/trunk/main/sc/source/ui/unoobj/cellsuno.cxx
Date Thu, 29 Dec 2011 04:34:22 GMT
Author: arielch
Date: Thu Dec 29 04:34:21 2011
New Revision: 1225428

URL: http://svn.apache.org/viewvc?rev=1225428&view=rev
Log:
i118696 - i118697 - Fix some Sheet Tab Color API issues

Modified:
    incubator/ooo/trunk/main/sc/source/ui/unoobj/cellsuno.cxx

Modified: incubator/ooo/trunk/main/sc/source/ui/unoobj/cellsuno.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/sc/source/ui/unoobj/cellsuno.cxx?rev=1225428&r1=1225427&r2=1225428&view=diff
==============================================================================
--- incubator/ooo/trunk/main/sc/source/ui/unoobj/cellsuno.cxx (original)
+++ incubator/ooo/trunk/main/sc/source/ui/unoobj/cellsuno.cxx Thu Dec 29 04:34:21 2011
@@ -8543,11 +8543,12 @@ void ScTableSheetObj::SetOnePropertyValu
         }
         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 )



Mime
View raw message