summaryrefslogtreecommitdiff
path: root/sfx2/source/appl
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-01-10 00:43:12 +0100
committerMiklos Vajna <vmiklos@suse.cz>2013-01-10 11:00:24 +0100
commitdb67dad3065e3578f1321822ffb63eef83fe5377 (patch)
tree3fda3a56e2cb70c27df6719cd58e1f5ad80a6e17 /sfx2/source/appl
parent62dc5dfcf2af93a35beb96bebe63b7e8ac652fb5 (diff)
fdo#58327: writerfilter: RemoveLastParagraph is tricky:
What happens here is that the xCursor->goLeft( 1, true ) selects the entire inserted table, which is then deleted. That causes annoyances, such as an assertion from ~SwIndexReg because as collateral damage the SwTxtNode that SwReader::Read's pUndoPam points to is also deleted, as well as missing tables in the document. DomainMapper_Impl::RemoveLastParagraph() can avoid this by not using setString() but instead disposing the paragraph, like it already does in other cases. But don't do it for new (loaded) documents, because it may kill flys in that case, which i strangely couldn't reproduce when pasting as RTF. Change-Id: I87302b8916e39ca42bc4fedfee40ac38fadd0939 (cherry picked from commit e521930ea1c855c236efb67793e540d07c201d35) Signed-off-by: Miklos Vajna <vmiklos@suse.cz>
Diffstat (limited to 'sfx2/source/appl')
0 files changed, 0 insertions, 0 deletions