summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-08-30 22:47:09 +0200
committerMichael Stahl <mstahl@redhat.com>2017-08-30 23:13:09 +0200
commit4b4ebb15456af443347679a7e7e8726c090a5bf5 (patch)
treee0a0c68cc571ba99de02b550e6e7f99706cda542 /sdext
parent4b6844343cdd4c1ddbf2326eabe177b516b8d7f7 (diff)
sw: WW8 import: properly handle consecutive range annotations
moz1187869-1.doc crashes on export to ODF because an annotation mark has been inserted that does not have a SwPostItField. In fact, the SwPostItField exists, but the annotation mark is at the wrong position. There are 2 consecutive range annotations in the file, so when Read_And() calls MoveAttrs(), the end of the both annotations are moved 2 times, hence later SwFltControlStack::SetAttrInDoc() will insert 2 annotation marks with the same end position, and the 2nd one will overwrite the name that the 1st one set on the 2nd SwPostItField, while the 1st SwPostItField remains with an empty name. Ensure that the end of an annotation mark is no longer moved once it's on the position of the field inserted in Read_And(). Crash is a regression from 31c54fa7bb03768b425ae019096e0a0e26e9c736. Change-Id: I0fd661e22e51701de67227f9145a13c62b10143e
Diffstat (limited to 'sdext')
0 files changed, 0 insertions, 0 deletions