diff options
Diffstat (limited to 'fpdfsdk/fpdf_editpath.cpp')
-rw-r--r-- | fpdfsdk/fpdf_editpath.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/fpdf_editpath.cpp b/fpdfsdk/fpdf_editpath.cpp index 2daec67e36..82c7ca13ef 100644 --- a/fpdfsdk/fpdf_editpath.cpp +++ b/fpdfsdk/fpdf_editpath.cpp @@ -80,10 +80,10 @@ FPDFPath_SetStrokeColor(FPDF_PAGEOBJECT path, if (!pPathObj || R > 255 || G > 255 || B > 255 || A > 255) return false; - float rgb[3] = {R / 255.f, G / 255.f, B / 255.f}; + std::vector<float> rgb = {R / 255.f, G / 255.f, B / 255.f}; pPathObj->m_GeneralState.SetStrokeAlpha(A / 255.f); pPathObj->m_ColorState.SetStrokeColor( - CPDF_ColorSpace::GetStockCS(PDFCS_DEVICERGB), rgb, 3); + CPDF_ColorSpace::GetStockCS(PDFCS_DEVICERGB), rgb); pPathObj->SetDirty(true); return true; } |