Index: core/fpdfapi/fpdf_page/cpdf_pathobject.cpp |
diff --git a/core/fpdfapi/fpdf_page/cpdf_pathobject.cpp b/core/fpdfapi/fpdf_page/cpdf_pathobject.cpp |
index ceb3dd43ccb86118cb5e5b6e9d47e8998a3a456e..0055d6a1332080d012ded43a8c1cccffe780df5e 100644 |
--- a/core/fpdfapi/fpdf_page/cpdf_pathobject.cpp |
+++ b/core/fpdfapi/fpdf_page/cpdf_pathobject.cpp |
@@ -46,9 +46,9 @@ void CPDF_PathObject::CalcBoundingBox() { |
if (!m_Path) |
return; |
CFX_FloatRect rect; |
- FX_FLOAT width = m_GraphState->m_LineWidth; |
+ FX_FLOAT width = m_GraphState.GetObject()->m_LineWidth; |
if (m_bStroke && width != 0) { |
- rect = m_Path.GetBoundingBox(width, m_GraphState->m_MiterLimit); |
+ rect = m_Path.GetBoundingBox(width, m_GraphState.GetObject()->m_MiterLimit); |
} else { |
rect = m_Path.GetBoundingBox(); |
} |