From: Martin Sevior (msevior@mccubbin.ph.unimelb.edu.au)
Date: Sat May 04 2002 - 19:17:05 EDT
On Sat, 4 May 2002, Christian Biesinger wrote:
> Hello!
> I have noticed a small problem with the behaviour of headers and
> footers.
> Namely, it seems to be necessary that the <section type="header" ...> comes
> after the <section header="...">.
>
> Why is that? Or is that simply a bug? (Should I file it?)
Yes that is necessary. A header is attached to a section. The section
needs to be defined first. Actually all the headers/footers have to be at
the end of the document. See the RTF importer for how we work around
this for RTF which has header definitions before \secd.
Cheers
Martin
>
> If the order of the two sections is wrong, Abiword first asserts:
> **** (1) Assert ****
> **** (1) pfStrux at pd_Document.cpp:579 ****
> **** (1) Continue ? (y/n) [y] :
>
> Then crashes:
> Program received signal SIGSEGV, Segmentation fault.
> 0x0829da16 in pf_Frag_Strux::getStruxType() const (this=0x0) at pf_Frag_Strux.cpp:44
> 44 return m_struxType;
> (gdb) bt
> #0 0x0829da16 in pf_Frag_Strux::getStruxType() const (this=0x0) at pf_Frag_Strux.cpp:44
> #1 0x082965e7 in PD_Document::changeSectionAttsNoUpdate(void const*, char const*, char const*) (this=0x864d8d0, sdh=0x0,
> attr=0x865a350 "header", attvalue=0x865a357 "sdwDocHdr") at pd_Document.cpp:580
> #2 0x08198e87 in IE_Imp_AbiWord_1::startElement(char const*, char const**) (this=0x864dec8, name=0x8659e2a "section", atts=0x8658f08)
> at ie_imp_AbiWord_1.cpp:268
> #3 0x081651e1 in UT_XML::startElement(char const*, char const**) (this=0xbffff090, name=0x8659e2a "section", atts=0x8658f08)
> at ut_xml.cpp:176
> #4 0x081650a6 in _startElement(void*, char const*, char const**) (userData=0xbffff090, name=0x8659e2a "section", atts=0x8658f08)
> at ut_xml.cpp:132
> #5 0x402fe8b6 in XML_GetBuffer () from /usr/lib/libexpat.so.0
>
>
>
>
> --
> "They that can give up essential liberty to obtain a little temporary
> safety deserve neither liberty nor safety."
> -- Benjamin Franklin
>
This archive was generated by hypermail 2.1.4 : Sat May 04 2002 - 19:19:35 EDT