[Libreoffice-commits] core.git: oox/source
Tomaž Vajngerl
quikee at gmail.com
Mon Feb 10 09:55:28 PST 2014
oox/source/export/drawingml.cxx | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
New commits:
commit d505d2ef49a8aadb24cd254bffbf1a6b549b282c
Author: Tomaž Vajngerl <quikee at gmail.com>
Date: Mon Feb 10 18:49:03 2014 +0100
Werror=maybe-uninitialized in drawingml export
Change-Id: Ib04a464483c43a999db82bfaa539193c526d5041
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index 22a1d97..0058aa7 100644
--- a/oox/source/export/drawingml.cxx
+++ b/oox/source/export/drawingml.cxx
@@ -204,10 +204,11 @@ void DrawingML::WriteColorTransformations( Sequence< PropertyValue > aTransforma
for( sal_Int32 i = 0; i < aTransformations.getLength(); i++ )
{
sal_Int32 nToken = Color::getColorTransformationToken( aTransformations[i].Name );
- sal_Int32 nValue; aTransformations[i].Value >>= nValue;
-
- if( nToken != XML_TOKEN_INVALID )
+ if( nToken != XML_TOKEN_INVALID && aTransformations[i].Value.hasValue() )
+ {
+ sal_Int32 nValue = aTransformations[i].Value.get<sal_Int32>();
mpFS->singleElementNS( XML_a, nToken, XML_val, I32S( nValue ), FSEND );
+ }
}
}
@@ -239,10 +240,9 @@ void DrawingML::WriteSolidFill( OUString sSchemeName, sal_Int32 nAlpha )
void DrawingML::WriteSolidFill( Reference< XPropertySet > rXPropSet )
{
// get fill color
- sal_uInt32 nFillColor;
if ( !GetProperty( rXPropSet, "FillColor" ) )
return;
- mAny >>= nFillColor;
+ sal_uInt32 nFillColor = mAny.get<sal_uInt32>();
// get InteropGrabBag and search the relevant attributes
OUString sColorFillScheme;
More information about the Libreoffice-commits
mailing list