| Index: core/fpdfapi/fpdf_page/cpdf_generalstate.cpp
|
| diff --git a/core/fpdfapi/fpdf_page/cpdf_generalstate.cpp b/core/fpdfapi/fpdf_page/cpdf_generalstate.cpp
|
| index 0f6cce6e29846b44045613f4f19c10a0cae2e06b..ff22d4d74b8559ecfbe09358c5a17401429397b6 100644
|
| --- a/core/fpdfapi/fpdf_page/cpdf_generalstate.cpp
|
| +++ b/core/fpdfapi/fpdf_page/cpdf_generalstate.cpp
|
| @@ -25,5 +25,6 @@ int RI_StringToId(const CFX_ByteString& ri) {
|
| } // namespace
|
|
|
| void CPDF_GeneralState::SetRenderIntent(const CFX_ByteString& ri) {
|
| - GetPrivateCopy()->m_RenderIntent = RI_StringToId(ri);
|
| + MakePrivateCopy();
|
| + GetObject()->m_RenderIntent = RI_StringToId(ri);
|
| }
|
|
|