https://bugs.freedesktop.org/show_bug.cgi?id=61479

--- Comment #4 from Chris Sherlock <[email protected]> ---
This appears to also be happening in one of our test documents. 

In the unit test sw_ooxmlexport, this tries to process zoom.docx.

In this document, it has the following in styles.xml:

  <w:style w:type="paragraph" w:customStyle="1"
  w:styleId="Textbody">
    <w:name w:val="Text body" />
    <w:basedOn w:val="Normal" />
    <w:rsid w:val="00FA71A6" />
    <w:pPr>
      <w:spacing w:after="120" />
    </w:pPr>
  </w:style>

Now I've stepped through the code, and the issue seems to be in
SfxStyleSheetBase::SetFollow(), because we check to see if the <w:name> value
(aName in the code) is the same as the styleId attribute of the <w:style> tag. 

http://opengrok.libreoffice.org/xref/core/svl/source/items/style.cxx#254

We seem to do some sort of search to find a stylesheet of the name "Textbody",
but actually we should be trying to find it based on the value of <w:baseOn>.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to