diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-07-05 17:04:08 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-07-05 17:07:20 +0200 |
commit | 40faf88cf0bef76e653e7e9dab707b4c936e7a3e (patch) | |
tree | 11b9cdf204cd961a353424508c727320bd04e5d7 /sw | |
parent | 3bdaf6168dc304b5a01bf196f3c695540a72537b (diff) |
SwLayHelper: when the page style name changes, we have a first page
Previously we only considered the first page of the whole document as
first page, which was incorrect.
Change-Id: I2e37fe504a5baee986d63d0cdef166f836877174
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/laycache.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/layout/laycache.cxx b/sw/source/core/layout/laycache.cxx index 8416c89d6d8f..06cde2f6bb4a 100644 --- a/sw/source/core/layout/laycache.cxx +++ b/sw/source/core/layout/laycache.cxx @@ -651,8 +651,9 @@ sal_Bool SwLayHelper::CheckInsertPage() bNextPageOdd = !bNextPageOdd; bInsertEmpty = sal_True; } + bool bNextPageFirst = pDesc != rpPage->GetPageDesc(); ::InsertNewPage( (SwPageDesc&)*pDesc, rpPage->GetUpper(), - bNextPageOdd, nPgNum == 1, bInsertEmpty, sal_False, rpPage->GetNext() ); + bNextPageOdd, bNextPageFirst, bInsertEmpty, sal_False, rpPage->GetNext() ); if ( bEnd ) { OSL_ENSURE( rpPage->GetNext(), "No new page?" ); |