summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-03-12 14:17:54 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-03-12 14:17:54 +0000
commitc2df008640f56631735dd3ae89e118c9c56cd36d (patch)
tree93276050cbd5467a63d72ce2b887c64d48341a67 /core
parent0e2e8db7e6e87611d4137e20a614761a3bc0b676 (diff)
downloadpdfium-c2df008640f56631735dd3ae89e118c9c56cd36d.tar.xz
Handle inserting negative values without a selection
When handling the AFNumber_Keystroke callback, if the changed value is negative and there is no selection, we'd incorrectly error out thinking we were inserting before the negative sign. This CL checks if the selection string is empty before erroring out. Bug: chromium:817433 Change-Id: I0ca08e121e9a8c207e9c7793f5b8a4e795c135e6 Reviewed-on: https://pdfium-review.googlesource.com/28110 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core')
0 files changed, 0 insertions, 0 deletions