diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-03-12 12:43:10 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-03-24 20:32:16 +0100 |
commit | c4dab726caaa73be9f9c731312080143b0a0b89d (patch) | |
tree | a07fef06a61f5f89adff50a06fdffa5d1fe577dd /sw/qa/core | |
parent | 531863e28b626f4af04f999295f79ecc347c2165 (diff) |
ofz#21168 sw,writerfilter: limit writerfilter hack to writerfilter
The problem is that at the end of WW8 import, a delete redline is
inserted that ends up calling DeleteAndJoin from inside
AppendRedline(). A fly is anchored AT_CHAR at (node 46, offset 0)
and the deletion goes from (node 46, offset 0) to
(node 48, offset 13) hence the special case check in
IsDestroyFrameAnchoredAtChar() for the IsInReading() prevents it
from being deleted, and then its anchor is still registered at the
node 46 when it gets deleted.
So try to restrict the WriterfilterHack to writerfilter, so it won't
affect WW8 import.
Unfortunately this is far less obvious than expected, because import can
happen for creating a new file, in which case it's all done via UNO in
writerfilter, or when inserting into an existing file, in which case
SwReader::Read() is used.
The SwDocShell's pMedium can't be used becuse in insert file case it
will be the loaded file, not the inserted file.
There isn't any obvious alternative to adding a silly UNO property for
the writerfilter to use.
Change-Id: Ia7fdc9bb1925202f6692ebee6e4b6b1fe50e5345
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90384
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/qa/core')
-rw-r--r-- | sw/qa/core/data/ww6/pass/ofz21168-1.doc | bin | 0 -> 35098 bytes |
1 files changed, 0 insertions, 0 deletions
diff --git a/sw/qa/core/data/ww6/pass/ofz21168-1.doc b/sw/qa/core/data/ww6/pass/ofz21168-1.doc Binary files differnew file mode 100644 index 000000000000..3bafb1d36bf7 --- /dev/null +++ b/sw/qa/core/data/ww6/pass/ofz21168-1.doc |