diff options
author | tsepez <tsepez@chromium.org> | 2016-08-29 14:42:36 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-29 14:42:36 -0700 |
commit | d24c3a60d0e6e5badef57d3baf55e5c3b6d4882e (patch) | |
tree | 56abe4fe5e26d4aa18b1921d1f8208065aae0bbd /core/fpdftext/cpdf_textpage.cpp | |
parent | 596014357f7cd9ee3245ba8ed52cbc5761151727 (diff) | |
download | pdfium-d24c3a60d0e6e5badef57d3baf55e5c3b6d4882e.tar.xz |
Revert "Add -> operators to CFX_CountRef."
This reverts commit c10c23a2b1999b1cb0354fd4db9837dc63a3d833.
TBR=dsinclair@chromium.org
Review-Url: https://codereview.chromium.org/2285283003
Diffstat (limited to 'core/fpdftext/cpdf_textpage.cpp')
-rw-r--r-- | core/fpdftext/cpdf_textpage.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/fpdftext/cpdf_textpage.cpp b/core/fpdftext/cpdf_textpage.cpp index ca1cbf1925..3981cfee40 100644 --- a/core/fpdftext/cpdf_textpage.cpp +++ b/core/fpdftext/cpdf_textpage.cpp @@ -45,10 +45,10 @@ FX_FLOAT CalculateBaseSpace(const CPDF_TextObject* pTextObj, const CFX_Matrix& matrix) { FX_FLOAT baseSpace = 0.0; const int nItems = pTextObj->CountItems(); - if (pTextObj->m_TextState->m_CharSpace && nItems >= 3) { + if (pTextObj->m_TextState.GetObject()->m_CharSpace && nItems >= 3) { bool bAllChar = true; - FX_FLOAT spacing = - matrix.TransformDistance(pTextObj->m_TextState->m_CharSpace); + FX_FLOAT spacing = matrix.TransformDistance( + pTextObj->m_TextState.GetObject()->m_CharSpace); baseSpace = spacing; for (int i = 0; i < nItems; i++) { CPDF_TextObjectItem item; @@ -1088,7 +1088,7 @@ void CPDF_TextPage::ProcessTextObject(PDFTEXT_Obj Obj) { spacing = -fontsize_h * item.m_OriginX / 1000; continue; } - FX_FLOAT charSpace = pTextObj->m_TextState->m_CharSpace; + FX_FLOAT charSpace = pTextObj->m_TextState.GetObject()->m_CharSpace; if (charSpace > 0.001) spacing += matrix.TransformDistance(charSpace); else if (charSpace < -0.001) |