Apache OpenOffice (AOO) Bugzilla – Issue 37432
WW8: NoteRef loses connection to footnote on import
Last modified: 2013-08-07 14:41:36 UTC
with 680m62 open document from issue 37420 -> the references to footnotes have lost their connection the the referring footnote, thus the field is empty after import. In the Edit.Field dialog you can see, that there is not footnote selected to refer to.
added keword "regression"
Created attachment 19610 [details] patch
cmc->martinm: heres my thinking... Word misuses its bookmark system to also use bookmarks as variables, so we hold onto things that get referenced and things that do the referencing to the end of the document to see if we need to import some of the references of bookmarks as show variables, which is what the RefToVar is about. The problem is that things that reference and things that get referenced are put into the same stack, so if it happens that a referencing thing shows up before the reference then the IsFtnEdnBkmField says that there is no such bookmark in the document, which is correct because it hasn't been put in yet. The attached patch does what I think is the right thing, hold onto both referencing and referenced until the end of the document, but stick the referenced things in before the referencing, so IsFtnEdnBkmField reports the correct information and everything is nice and happy.
mmaher: Added to monaleenfilterteam30
mmaher: reopening to reassign
mmaher: Reassigning to mru
Verified fix in CWS monaleenfilterteam30.
Verified.
Checked integration in 680m77.