[Libreoffice-commits] core.git: xmloff/source
Miklos Vajna (via logerrit)
logerrit at kemper.freedesktop.org
Mon Apr 15 07:39:55 UTC 2019
xmloff/source/style/TransGradientStyle.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 504a9575e7bebe29528c60686a6ad64f9ba81c8b
Author: Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Mon Apr 15 09:37:33 2019 +0200
Commit: Miklos Vajna <vmiklos at collabora.com>
CommitDate: Mon Apr 15 09:38:51 2019 +0200
xmloff: fix loplugin:simplifyconstruct warning
Change-Id: Iab32f67f911157c5d7c0db8f36ea638576cfd0bf
diff --git a/xmloff/source/style/TransGradientStyle.cxx b/xmloff/source/style/TransGradientStyle.cxx
index fb24ef79610e..3de8ce2a4eee 100644
--- a/xmloff/source/style/TransGradientStyle.cxx
+++ b/xmloff/source/style/TransGradientStyle.cxx
@@ -248,7 +248,7 @@ void XMLTransGradientStyleExport::exportXML(
}
// Transparency start
- Color aColor = Color(aGradient.StartColor);
+ Color aColor(aGradient.StartColor);
sal_Int32 aStartValue = 100 - static_cast<sal_Int32>(((aColor.GetRed() + 1) * 100) / 255);
::sax::Converter::convertPercent( aOut, aStartValue );
aStrValue = aOut.makeStringAndClear();
More information about the Libreoffice-commits
mailing list