summaryrefslogtreecommitdiff
path: root/include/version.hrc
diff options
context:
space:
mode:
authorMichael Stahl <michael.stahl@allotropia.de>2023-08-02 13:26:39 +0200
committerMichael Stahl <michael.stahl@allotropia.de>2023-08-02 20:40:37 +0200
commit2d96d69322ac18f53668b75397c8587f94cd043b (patch)
treebc13d3aeefe9aafa7e7d90ac6521f4748b370154 /include/version.hrc
parent79646e204f5d558f5519186cb62ef1c9254f857f (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