Apache OpenOffice (AOO) Bugzilla – Issue 111177
[sw] unxsols4: cannot import ODT or Docbook file with footnote
Last modified: 2017-05-20 11:42:12 UTC
Load attached bugdoc with the docbook filter => iO error (broken between m68 and m71). Found in docbook_losa.bas
Created attachment 69138 [details] Bugdoc
Created attachment 69139 [details] Bugdoc
This happens only on Solaris Sparc (S10)
->mst: Would you please take a look?
finally tracked down the problem: sw/source/core/unocore/unoftn.cxx compile this file with debug=t, and it works. compile it without debug, and it breaks as described. only happens on unxsols4, not on unxsoli4. compiler bug?
unxsols4 (Sun C++ 5.9 SunOS_sparc) generates wrong code workaround is to replace: , m_bIsDescriptor(0 == pFootnote) with: , m_bIsDescriptor((0 == pFootnote) ? true : false) fixed in cws sw33bf04 http://hg.services.openoffice.org/hg/cws/sw33bf04/rev/61b342b4ceae
the bug is a little more severe: it also affects ODF import (if the file contains footnotes). possibly also other formats that use the UNO API, like e.g. DOCX.
just for the record: the Sun compiler bug is now filed as CR 6954662
please verify
Verified in CWS sw33bf04. MRU->OC: the docbook_losa.bas can be changed now.