summaryrefslogtreecommitdiff
path: root/xfa
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2018-04-24 17:55:08 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-24 17:55:08 +0000
commitdf96bf69f22d63a0ab6c5e48556682b0532c3079 (patch)
tree761edb26bf1c1bf2aacd8f643f0dcbb9022e8f2a /xfa
parent8a95c22dd5d4f7d4e730370c761f41298ba98bf2 (diff)
downloadpdfium-df96bf69f22d63a0ab6c5e48556682b0532c3079.tar.xz
Fix edit text rendered with wrong offsets after deletion.
Bug: chromium:835924 Change-Id: I3d6a3d1947cb1b8cda246cc74ef0b79a482b7997 Reviewed-on: https://pdfium-review.googlesource.com/31276 Commit-Queue: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'xfa')
-rw-r--r--xfa/fde/cfde_texteditengine.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/xfa/fde/cfde_texteditengine.cpp b/xfa/fde/cfde_texteditengine.cpp
index 1b6e29de08..989843c7f0 100644
--- a/xfa/fde/cfde_texteditengine.cpp
+++ b/xfa/fde/cfde_texteditengine.cpp
@@ -821,6 +821,7 @@ WideString CFDE_TextEditEngine::Delete(size_t start_idx,
gap_size_ += length;
text_length_ -= length;
+ is_dirty_ = true;
ClearSelection();
if (delegate_)