summaryrefslogtreecommitdiff
path: root/core/fxcrt/cfx_datetime.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-04-04 02:24:20 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-04 02:24:20 +0000
commit2e8701bf5c0703e8d76ad77223a99dd8b8fe6b6f (patch)
tree7c108e9a6f7934a6f3f8deefbd7fb0dae296863f /core/fxcrt/cfx_datetime.h
parente99a1901e09ba467ffa5657f176bebe649e25b9d (diff)
downloadpdfium-2e8701bf5c0703e8d76ad77223a99dd8b8fe6b6f.tar.xz
[Merge M66] 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. TBR=hnakashima@chromium.org 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> (cherry picked from commit c2df008640f56631735dd3ae89e118c9c56cd36d) Reviewed-on: https://pdfium-review.googlesource.com/29730 Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxcrt/cfx_datetime.h')
0 files changed, 0 insertions, 0 deletions