xmloff/source/style/TransGradientStyle.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 504a9575e7bebe29528c60686a6ad64f9ba81c8b Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Mon Apr 15 09:37:33 2019 +0200 Commit: Miklos Vajna <vmik...@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(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits