summaryrefslogtreecommitdiff
path: root/svgio/source
diff options
context:
space:
mode:
authorMatt K <mattkse@gmail.com>2023-07-07 00:15:02 -0500
committerHeiko Tietze <heiko.tietze@documentfoundation.org>2023-07-10 16:41:26 +0200
commit7019eef453954785ad039bebd8c8a00183992584 (patch)
tree2d72844f94fc773e714f9fc97e49248e1665ea85 /svgio/source
parentb26ddd42b434c84e5f8c939c2903fc7a0f79285f (diff)
tdf#146273 Do not allow non-numeric values for Navigator "Go to"
This change modifies "SwNavigationPI::EditAction" and adds a new "connect_changed" handler "PageModifiedHdl" to the spin control (needed to intercept text handling). In both functions we perform checks to ensure that only numeric values can be entered and only values within the page range of the document. This now matches the behavior of the "Go to Page" feature. To go to the first page, just enter a character input. To go to the last page, just enter a value higher than the total number of pages. Change-Id: Ia020d72f4bed5b98b668ba95888bc4bc1d65e07d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154156 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'svgio/source')
0 files changed, 0 insertions, 0 deletions