Fixed a bug with missing gradient color in MetafileToSvg

This commit is contained in:
Kirill Polyakov
2023-12-22 20:10:02 +03:00
parent e7dff77c8e
commit b26d9ca0a1

View File

@ -1075,7 +1075,7 @@ namespace MetaFile
m_wsDefs += L"<linearGradient id=\"" + wsStyleId + L"\">" +
L"<stop offset=\"0%\" stop-color=\"" + CalculateColor(pBrush->GetColor(), pBrush->GetAlpha()) + L"\"/>" +
L"<stop offset=\"100%\" stop-color=\"" + CalculateColor(pBrush->GetColor(), pBrush->GetAlpha2()) + L"\"/>" +
L"<stop offset=\"100%\" stop-color=\"" + CalculateColor(pBrush->GetColor2(), pBrush->GetAlpha2()) + L"\"/>" +
L"</linearGradient>";
return wsStyleId;