Index: core/fpdfapi/fpdf_page/cpdf_graphicstates.cpp |
diff --git a/core/fpdfapi/fpdf_page/cpdf_graphicstates.cpp b/core/fpdfapi/fpdf_page/cpdf_graphicstates.cpp |
index e411b53a51e5d8ec3ab046fa4c90b287fd675628..42f26c11354deb30eb503fa63eb774e04d7c91f2 100644 |
--- a/core/fpdfapi/fpdf_page/cpdf_graphicstates.cpp |
+++ b/core/fpdfapi/fpdf_page/cpdf_graphicstates.cpp |
@@ -11,7 +11,8 @@ CPDF_GraphicStates::CPDF_GraphicStates() {} |
CPDF_GraphicStates::~CPDF_GraphicStates() {} |
void CPDF_GraphicStates::DefaultStates() { |
- m_ColorState.Emplace()->Default(); |
+ m_ColorState.Emplace(); |
+ m_ColorState.SetDefault(); |
} |
void CPDF_GraphicStates::CopyStates(const CPDF_GraphicStates& src) { |