summaryrefslogtreecommitdiff
path: root/xmloff/source/style/TransGradientStyle.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/style/TransGradientStyle.cxx')
-rw-r--r--xmloff/source/style/TransGradientStyle.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/source/style/TransGradientStyle.cxx b/xmloff/source/style/TransGradientStyle.cxx
index c5e424fb5ed7..622e2af57366 100644
--- a/xmloff/source/style/TransGradientStyle.cxx
+++ b/xmloff/source/style/TransGradientStyle.cxx
@@ -151,7 +151,7 @@ void XMLTransGradientStyleImport::importXML(
( (100 - aStartTransparency) * 255 ) / 100 );
Color aColor( n, n, n );
- aGradient.StartColor = static_cast<sal_Int32>( aColor.GetColor() );
+ aGradient.StartColor = static_cast<sal_Int32>( aColor );
}
break;
case XML_TOK_GRADIENT_END:
@@ -163,7 +163,7 @@ void XMLTransGradientStyleImport::importXML(
( (100 - aEndTransparency) * 255 ) / 100 );
Color aColor( n, n, n );
- aGradient.EndColor = static_cast<sal_Int32>( aColor.GetColor() );
+ aGradient.EndColor = static_cast<sal_Int32>( aColor );
}
break;
case XML_TOK_GRADIENT_ANGLE:
@@ -248,14 +248,14 @@ void XMLTransGradientStyleExport::exportXML(
Color aColor;
// Transparency start
- aColor = aGradient.StartColor;
+ aColor = Color(aGradient.StartColor);
sal_Int32 aStartValue = 100 - static_cast<sal_Int32>(((aColor.GetRed() + 1) * 100) / 255);
::sax::Converter::convertPercent( aOut, aStartValue );
aStrValue = aOut.makeStringAndClear();
rExport.AddAttribute( XML_NAMESPACE_DRAW, XML_START, aStrValue );
// Transparency end
- aColor = aGradient.EndColor;
+ aColor = Color(aGradient.EndColor);
sal_Int32 aEndValue = 100 - static_cast<sal_Int32>(((aColor.GetRed() + 1) * 100) / 255);
::sax::Converter::convertPercent( aOut, aEndValue );
aStrValue = aOut.makeStringAndClear();