diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2020-07-03 17:52:28 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@cib.de> | 2020-07-06 10:07:21 +0200 |
commit | dc7e7b94a7211c576454267c09eb108e761e4487 (patch) | |
tree | 50bf18bb2a183361bff168ecd8af4beb37441182 /remotebridges | |
parent | 9e2da576bd07a389599f833f2cf1b09e6ead962d (diff) |
tdf#134253 sw: fix SwUndoInserts::UndoImpl() if inserting before section
Somehow the clipboard is pasted before the SwSectionNode, which is the
first node in the body text.
The OSL_ENSURE( !bStartIsTextNode, "Oops, undo may be instable now." )
is triggered; the Undo must remove 2 SwTextNode in this case.
Because of the extra SwTextNode the indexes are off by 1 and this starts
to assert since commit 24fd14b387dca458a1b6e9415e936d26562ddb1e when
setting a fieldmark on a non-text node.
Change-Id: Ic52b0f4c7665994cadfe8f074bc4607c55352aa1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97887
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'remotebridges')
0 files changed, 0 insertions, 0 deletions