summaryrefslogtreecommitdiff
path: root/sw/inc/tgrditem.hxx
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2023-07-06 13:37:30 +0200
committerMichael Weghorn <m.weghorn@posteo.de>2023-07-08 00:12:08 +0200
commit7f7ccf955fa1138b712233628de4a73b3f845c7e (patch)
treed21c89f43873656dd237b96f0d7a3db120476f7d /sw/inc/tgrditem.hxx
parent472950414a0fb07d5260b7b6b2d3a5d2dc18a68d (diff)
tdf#155705 sw a11y: Only handle paragraph's own spell check data
When a paragraph is split across multiple pages, there are multiple accessible paragraphs on the accessibility layer, but there's still just a single text node in the underlying Writer core model. The `sw::WrongListIteratorCounter` used in `SwTextMarkupHelper` is for the whole text node, i.e. iterates over the spell check data from other pages (i.e. other accessible paragraphs) as well in that case. This caused invalid indices to be used when calculating the index within the current accessible paragraph again when iterating over all elements, causing a crash. Fix this by filtering out the elements that are outside of the accessible paragraph when handling markup information. Change-Id: If76cc60cc9ff5614d0bcbaff196ac34ec908936e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154109 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'sw/inc/tgrditem.hxx')
0 files changed, 0 insertions, 0 deletions