diff options
author | Michael Stahl <michael.stahl@allotropia.de> | 2023-08-02 13:26:39 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2023-08-02 20:40:37 +0200 |
commit | 2d96d69322ac18f53668b75397c8587f94cd043b (patch) | |
tree | bc13d3aeefe9aafa7e7d90ac6521f4748b370154 /include/version.hrc | |
parent | 79646e204f5d558f5519186cb62ef1c9254f857f (diff) |
tdf#156546 sw: fix infinite loop in SwUndoInsert::RedoImpl()
The problem is that SwUndoSaveContent::MovePtBackward() sets the point
of a shell cursor to the document body's start node, which is not a
valid position for a shell cursor; FindParentText() then loops forever.
The purpose of this appears to be to move the point temporarily
somewhere where subsequent inserting operations won't move it further,
so that it can be restored to the start of the inserted stuff.
Refactor a bit to use a temporary SwNodeIndex instead, which should work
as nothing should delete the node it's pointing to.
(regression from commit d81379db730a163c5ff75d4f3a3cddbd7b5eddda)
Change-Id: I471bcced1741c77c07239ed124d4fd39ff7a7515
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155227
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'include/version.hrc')
0 files changed, 0 insertions, 0 deletions