diff options
Diffstat (limited to 'core/fpdfapi/fpdf_page/cpdf_graphicstates.cpp')
-rw-r--r-- | core/fpdfapi/fpdf_page/cpdf_graphicstates.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/fpdfapi/fpdf_page/cpdf_graphicstates.cpp b/core/fpdfapi/fpdf_page/cpdf_graphicstates.cpp index e411b53a51..42f26c1135 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) { |