summaryrefslogtreecommitdiff
path: root/sc/source/ui/vba/vbafont.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/vba/vbafont.cxx')
-rw-r--r--sc/source/ui/vba/vbafont.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/ui/vba/vbafont.cxx b/sc/source/ui/vba/vbafont.cxx
index 1d82ded74aad..bd0f410de6fe 100644
--- a/sc/source/ui/vba/vbafont.cxx
+++ b/sc/source/ui/vba/vbafont.cxx
@@ -79,12 +79,12 @@ ScVbaFont::setColorIndex( const uno::Any& _colorindex )
// handled properly here
if ( !nIndex || ( nIndex == excel::XlColorIndex::xlColorIndexAutomatic ) )
- {
+ {
nIndex = 1; // check default ( assume black )
- ScVbaFont_BASE::setColorIndex( uno::makeAny( nIndex ) );
- }
- else
- ScVbaFont_BASE::setColorIndex( _colorindex );
+ ScVbaFont_BASE::setColorIndex( uno::makeAny( nIndex ) );
+ }
+ else
+ ScVbaFont_BASE::setColorIndex( _colorindex );
}
uno::Any SAL_CALL