Bug 39054 - rtf: Heading styles are centered but should left aligned
Summary: rtf: Heading styles are centered but should left aligned
Status: CLOSED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.4.1 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL: www.sparxsystems.com
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-07 17:40 UTC by Alistair Leslie-Hughes
Modified: 2012-03-19 06:10 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example Document (18.57 KB, application/msword)
2011-10-23 14:20 UTC, Alistair Leslie-Hughes
Details

Note You need to log in before you can comment on or make changes to this bug.
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.