diff options
author | Justin Luth <jluth@mail.com> | 2023-11-02 13:35:24 -0400 |
---|---|---|
committer | Justin Luth <jluth@mail.com> | 2023-11-15 20:03:28 +0100 |
commit | 213c6a9999e84f084978391c16276017078bf9ed (patch) | |
tree | 4a7750b860ed2cb877576fe4801b243c2295184b /sw/source | |
parent | 861ebce9ca52cbe87121879f159d8ec0cb572755 (diff) |
related tdf#158031 editeng: GetFieldAtSel...(+look before cursor)
Nearly a No-Functional-Change, but not quite.
For practical and intentional purposes, it can be considered NFC.
Although I didn't find an actual case where it happened,
a code read says SelectFieldAtCursor COULD select a non-field.
It assumed that previous code had already identified that there
must be a field here.
Well, I want to extend GetFieldAtSelection to check backwards
to solve bug 158031 anyway, so I might as well "fix"
this assumption to only select a valid field.
This function REALLY depends on
GetFieldAtSelection working properly.
So, I put some asserts in to ensure that stays true.
Change-Id: Ie22945a418497511501b04df5e17071d977cbd5b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158855
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
Diffstat (limited to 'sw/source')
0 files changed, 0 insertions, 0 deletions