From 4d9df422c340b3bc33e044d3d94e1ff9582e1260 Mon Sep 17 00:00:00 2001 From: tsepez Date: Wed, 31 Aug 2016 10:26:38 -0700 Subject: Make CPDF_GraphState have a CPDF_GraphStateData instead of inheriting. Get callers out of the copy-before-write business, and let the class manage it instead. Review-Url: https://codereview.chromium.org/2292363002 --- core/fpdfapi/fpdf_page/cpdf_textobject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/fpdfapi/fpdf_page/cpdf_textobject.cpp') diff --git a/core/fpdfapi/fpdf_page/cpdf_textobject.cpp b/core/fpdfapi/fpdf_page/cpdf_textobject.cpp index f9e6bdaa76..1c6f37cad4 100644 --- a/core/fpdfapi/fpdf_page/cpdf_textobject.cpp +++ b/core/fpdfapi/fpdf_page/cpdf_textobject.cpp @@ -365,7 +365,7 @@ void CPDF_TextObject::CalcPositionData(FX_FLOAT* pTextAdvanceX, m_Top = max_y; matrix.TransformRect(m_Left, m_Right, m_Top, m_Bottom); if (TextRenderingModeIsStrokeMode(m_TextState.GetTextMode())) { - FX_FLOAT half_width = m_GraphState.GetObject()->m_LineWidth / 2; + FX_FLOAT half_width = m_GraphState.GetLineWidth() / 2; m_Left -= half_width; m_Right += half_width; m_Top += half_width; -- cgit v1.2.3