diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-10-04 21:13:59 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-04 21:13:59 +0000 |
commit | 7cabaf136b2aa671768c9d8ee3645c9444afc700 (patch) | |
tree | 4aec57e31e1a7207e8009e9d33c9b738a3e8288b /fpdfsdk/pwl/cpwl_appstream.cpp | |
parent | ce6eb642dbaf96fc2a9d4e97a205a0a12e7154a4 (diff) | |
download | pdfium-7cabaf136b2aa671768c9d8ee3645c9444afc700.tar.xz |
CPDF_VariableText::m_nHorzScale is always 100
Remove the member and simplify logic in all the places this
is passed.
Change-Id: I39b979793fe84f0dc460261223655dd7f50555cc
Reviewed-on: https://pdfium-review.googlesource.com/c/43474
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fpdfsdk/pwl/cpwl_appstream.cpp')
-rw-r--r-- | fpdfsdk/pwl/cpwl_appstream.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/fpdfsdk/pwl/cpwl_appstream.cpp b/fpdfsdk/pwl/cpwl_appstream.cpp index 4175b8ef2a..aa007b8d6f 100644 --- a/fpdfsdk/pwl/cpwl_appstream.cpp +++ b/fpdfsdk/pwl/cpwl_appstream.cpp @@ -68,7 +68,6 @@ const char kSetNonZeroWindingClipOperator[] = "W"; const char kSetRGBOperator[] = "rg"; const char kSetRGBStrokedOperator[] = "RG"; const char kSetTextFontAndSizeOperator[] = "Tf"; -const char kSetTextScaleHorizontalOperator[] = "Tz"; const char kShowTextOperator[] = "Tj"; const char kStateRestoreOperator[] = "Q"; const char kStateSaveOperator[] = "q"; @@ -667,16 +666,9 @@ ByteString GetEditAppStream(CPWL_EditImpl* pEdit, std::ostringstream sAppStream; if (sEditStream.tellp() > 0) { - int32_t nHorzScale = pEdit->GetHorzScale(); - if (nHorzScale != 100) { - sAppStream << nHorzScale << " " << kSetTextScaleHorizontalOperator - << "\n"; - } - float fCharSpace = pEdit->GetCharSpace(); - if (!IsFloatZero(fCharSpace)) { + if (!IsFloatZero(fCharSpace)) sAppStream << fCharSpace << " " << kSetCharacterSpacingOperator << "\n"; - } sAppStream << sEditStream.str(); } |