Index: core/fpdfapi/fpdf_page/fpdf_page_parser.cpp |
diff --git a/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp b/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp |
index 70e1d1aea60fdc8206fd1aba5ee7280cdf30c5e8..5272a4464b634befbc6442c029f9d38a66a78539 100644 |
--- a/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp |
+++ b/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp |
@@ -686,21 +686,19 @@ void CPDF_StreamContentParser::Handle_ConcatMatrix() { |
} |
void CPDF_StreamContentParser::Handle_SetColorSpace_Fill() { |
- CFX_ByteString csname = GetString(0); |
- CPDF_ColorSpace* pCS = FindColorSpace(csname); |
- if (!pCS) { |
+ CPDF_ColorSpace* pCS = FindColorSpace(GetString(0)); |
+ if (!pCS) |
return; |
- } |
- m_pCurStates->m_ColorState.GetPrivateCopy()->m_FillColor.SetColorSpace(pCS); |
+ |
+ m_pCurStates->m_ColorState.GetMutableFillColor()->SetColorSpace(pCS); |
} |
void CPDF_StreamContentParser::Handle_SetColorSpace_Stroke() { |
- CFX_ByteString csname = GetString(0); |
- CPDF_ColorSpace* pCS = FindColorSpace(csname); |
- if (!pCS) { |
+ CPDF_ColorSpace* pCS = FindColorSpace(GetString(0)); |
+ if (!pCS) |
return; |
- } |
- m_pCurStates->m_ColorState.GetPrivateCopy()->m_StrokeColor.SetColorSpace(pCS); |
+ |
+ m_pCurStates->m_ColorState.GetMutableStrokeColor()->SetColorSpace(pCS); |
} |
void CPDF_StreamContentParser::Handle_SetDash() { |