Bug 288615

Summary: calligrawords newpage break before table of contents
Product: [Applications] calligrawords Reporter: Bernd Buschinski <b.buschinski>
Component: opendocumentAssignee: Calligra Words Bugs <calligra-words-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 2.4-snapshots   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: test document
top libreoffice, bottom calligrawords

Description Bernd Buschinski 2011-12-10 00:02:39 UTC
Created attachment 66572 [details]
test document

Version:           2.4-snapshots (using KDE 4.7.3) 
OS:                Linux

calligrawords newpage break before table of contents. The table of contents shopuld be on Page 2, not 1. So the number of pages should be 3, not 2.

Reproducible: Always

Steps to Reproduce:
load test document

Actual Results:  
see "some text" and the "table of contents" is on page 1

Expected Results:  
"table of contents" should be on page 2

kde-4.7.4
calligra-2.3.84
Comment 1 Bernd Buschinski 2011-12-10 00:03:28 UTC
Created attachment 66573 [details]
top libreoffice, bottom calligrawords
Comment 2 Camilla Boemann 2011-12-10 01:49:55 UTC
Git commit b6bf55ad5f542d4ff9bb735323d1da33c8cca4b5 by C. Boemann.
Committed on 10/12/2011 at 02:48.
Pushed by boemann into branch 'master'.

Preserve a pagebreak before table of contents

BUG:288615

M  +1    -0    libs/textlayout/KoTextLayoutArea.cpp
M  +14   -1    libs/textlayout/ToCGenerator.cpp
M  +1    -0    libs/textlayout/ToCGenerator.h

http://commits.kde.org/calligra/b6bf55ad5f542d4ff9bb735323d1da33c8cca4b5