summaryrefslogtreecommitdiff
path: root/eventattacher
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2023-12-18 17:44:41 +0300
committerXisco Fauli <xiscofauli@libreoffice.org>2023-12-19 16:26:28 +0100
commit7eac2d2fded789a3dd64b738d816ce0b6270decc (patch)
tree4a007a6ff2783f44592e703c5b10740cbf4c3217 /eventattacher
parent884802163a07064683b6b2637c0601692f507a18 (diff)
tdf#158703: return updated position from FnAddNonBrkSpace
The paragraph text may become shorter after the function succeeds, because it may remove arbitrary number of preceding spaces; since the position may then be used to access data in the string in the caller, we need to update it, to avoid use of old position (which may point beyond the string, and produce a crash; or it may point to a wrong position in it). Change-Id: Ib1b4b63cbd7150e0f69c97032e3410db7dadd4dc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160924 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> (cherry picked from commit 1325d66a7f8657aaf9951a0664fbf14cca86905b) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160934 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160978
Diffstat (limited to 'eventattacher')
0 files changed, 0 insertions, 0 deletions