summaryrefslogtreecommitdiff
path: root/sc/source/ui/vba/vbafont.cxx
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2007-08-30 09:04:53 +0000
committerVladimir Glazounov <vg@openoffice.org>2007-08-30 09:04:53 +0000
commit0a48995a7afe77cc180e9ae4c735575a693f1e5c (patch)
treeb660b2c58b0fe9cdd980858fedb5655665cafca9 /sc/source/ui/vba/vbafont.cxx
parent2116dd63d5cc697ae58ea85bfc37a29006967dac (diff)
INTEGRATION: CWS npower7 (1.2.2); FILE MERGED
2007/07/23 11:51:59 npower 1.2.2.1: get rid of uninitialised warnings
Diffstat (limited to 'sc/source/ui/vba/vbafont.cxx')
-rw-r--r--sc/source/ui/vba/vbafont.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/vba/vbafont.cxx b/sc/source/ui/vba/vbafont.cxx
index e065bb09d7aa..b997673a3bfe 100644
--- a/sc/source/ui/vba/vbafont.cxx
+++ b/sc/source/ui/vba/vbafont.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: vbafont.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: rt $ $Date: 2007-04-25 16:06:21 $
+ * last change: $Author: vg $ $Date: 2007-08-30 10:04:31 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -169,7 +169,7 @@ ScVbaFont::getColorIndex() throw ( uno::RuntimeException )
sal_Int32 nIndex = -1;
for ( sal_Int32 count=0; count<nElems; ++count )
{
- sal_Int32 nPaletteColor;
+ sal_Int32 nPaletteColor = 0;
xIndex->getByIndex( count ) >>= nPaletteColor;
if ( nPaletteColor == nColor )
{
@@ -257,7 +257,7 @@ ScVbaFont::getBold() throw ( uno::RuntimeException )
if ( mpDataSet->GetItemState( ATTR_FONT_WEIGHT, TRUE, NULL) == SFX_ITEM_DONTCARE )
return aNULL();
- double fValue;
+ double fValue = 0.0;
mxFont->getPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "CharWeight" ) ) ) >>= fValue;
return uno::makeAny( fValue == awt::FontWeight::BOLD );
}