summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/cellsuno.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/unoobj/cellsuno.cxx')
-rw-r--r--sc/source/ui/unoobj/cellsuno.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx
index 4647b2bd3b4e..a12d8d1c9f2f 100644
--- a/sc/source/ui/unoobj/cellsuno.cxx
+++ b/sc/source/ui/unoobj/cellsuno.cxx
@@ -7877,17 +7877,15 @@ void ScTableSheetObj::SetOnePropertyValue( const SfxItemPropertySimpleEntry* pEn
{
if (rDoc.IsScenario(nTab))
{
- sal_Int32 nNewColor = 0;
- if (aValue >>= nNewColor)
+ Color aColor;
+ if (aValue >>= aColor)
{
OUString aName;
OUString aComment;
- Color aColor;
ScScenarioFlags nFlags;
+ Color aTmp;
rDoc.GetName( nTab, aName );
- rDoc.GetScenarioData( nTab, aComment, aColor, nFlags );
-
- aColor = Color(static_cast<sal_uInt32>(nNewColor));
+ rDoc.GetScenarioData( nTab, aComment, aTmp, nFlags );
pDocSh->ModifyScenario( nTab, aName, aComment, aColor, nFlags );
}