summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorJustin Luth <jluth@mail.com>2023-06-26 20:14:17 -0400
committerJustin Luth <jluth@mail.com>2023-06-27 23:43:52 +0200
commitefdf2505df7fe766465e4cd5b8bc429ca8d51f71 (patch)
treeddea91e56bf972f804e5b77599663bfc9fa7ede0 /oox
parent4eb813aaabd88a13172effc467259b60d1831543 (diff)
tdf#151548 ContentControls vba: allow search by float #2
I don't know how to figure out where the basic parsing is mishandling the double-specifier of "#", so just hack in a re-attempt to find a control with the name of an unfound index. This should be fine. If it really was specifying an index, then it won't get to this code. If the number is larger than the index and a control exists with that id, then it almost certainly was intended as a name. If by some chance it wasn't, then instead of the code failing, it will actually go ahead with the operation. Since in practical terms this won't happen, just go ahead and fix the likely case of a positive-number-as-a-name control not being found. Change-Id: I2a34184d86b99a50fdc6b806264f1d5e7794ad48 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153630 Tested-by: Jenkins Reviewed-by: Justin Luth <jluth@mail.com> (cherry picked from commit 609a1567d0e60ca11800df56059b97b6a61ad117) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153605
Diffstat (limited to 'oox')
0 files changed, 0 insertions, 0 deletions