Bug 39054

Summary: rtf: Heading styles are centered but should left aligned
Product: LibreOffice Reporter: Alistair Leslie-Hughes <leslie_alistair>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: medium CC: jbfaure
Version: 3.4.1 release   
Hardware: Other   
OS: All   
URL: www.sparxsystems.com
Whiteboard:
i915 platform: i915 features:
Attachments: Example Document

Description Alistair Leslie-Hughes 2011-07-07 17:40:14 UTC
Open Attached Document.

The singe line should be left aligned.
Comment 1 Jean-Baptiste Faure 2011-10-22 03:42:00 UTC
Please attach your offending document.

Best regards. JBF
Comment 2 Alistair Leslie-Hughes 2011-10-23 14:20:57 UTC
Created attachment 52659 [details]
Example Document
Comment 3 Jean-Baptiste Faure 2011-10-23 21:12:39 UTC
Hmmm, the first line looks like it is formatted: centered. Please have a look at the definition of style "Header 1".
How did you make your document? It is en export from another document where this firts line is not centered?

Best regards. JBF
Comment 4 Alistair Leslie-Hughes 2011-10-24 02:08:22 UTC
Heading Style 1 doesnt have the center flag(\qc) set
{\s11\snext0\outlinelevel0\f0\fs32\b\cf4\cb2\chcbpat2\sb240\sa60\sl0\outlinelevel0 Heading 1;}

Title Style has the center flag set (\qc)
{\s20\snext0\f0\fs32\b\cf1\cb2\chcbpat2\sb240\sa60\sl0\qc Title;}

If the Document is opened in WORD or Open Office the heading is displayed correctly.


The Document was generated via Enterprise Architect.
Comment 5 Jean-Baptiste Faure 2011-10-24 03:30:50 UTC
(In reply to comment #4)
> Heading Style 1 doesnt have the center flag(\qc) set

You are right: no problem with the current master (further LibO 3.5, new RTF filter), Heading 1 is left aligned.

Best regards. JBF
Comment 6 Jean-Baptiste Faure 2011-12-11 02:58:32 UTC
Looks correct in the current libreoffice-3-5 branch (next 3.5.0 release) with the new RTF filter.
Closing as resolved.

Best regards. JBF
Comment 7 Jean-Baptiste Faure 2012-03-19 06:10:14 UTC
Works as expected in LO 3.5.1. 
Closing. Thank you.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.