diff options
author | Philipp Lohmann <pl@openoffice.org> | 2009-09-14 17:23:44 +0000 |
---|---|---|
committer | Philipp Lohmann <pl@openoffice.org> | 2009-09-14 17:23:44 +0000 |
commit | 2589f7adbf0066980b8da68355c2d48369465764 (patch) | |
tree | b5777b7b692048ef9690bae9395b129dbb4aa5cd /vcl/source/gdi/print3.cxx | |
parent | 8a793295f4eb6530ac55654353de1ac1a33dd170 (diff) |
#i104662# fix IsLastPage handling
Diffstat (limited to 'vcl/source/gdi/print3.cxx')
-rw-r--r-- | vcl/source/gdi/print3.cxx | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/vcl/source/gdi/print3.cxx b/vcl/source/gdi/print3.cxx index 5aab3fe87acf..98f6530d5b49 100644 --- a/vcl/source/gdi/print3.cxx +++ b/vcl/source/gdi/print3.cxx @@ -802,18 +802,10 @@ PrinterController::PageSize PrinterController::getFilteredPageFile( int i_nFilte { // map current sub page to real page int nPage = (i_nFilteredPage * nSubPages + nSubPage) / rMPS.nRepeat; - if( mpImplData->mbReversePageOrder ) + if( nSubPage == nSubPages-1 || + nPage == nDocPages-1 ) { - if( nSubPage == nSubPages-1 || - nPage == nDocPages-1 ) - { - mpImplData->mbLastPage = bIsLastPage; - } - } - else - { - if( nPage == nDocPages-1 ) - mpImplData->mbLastPage = bIsLastPage; + mpImplData->mbLastPage = bIsLastPage; } if( nPage >= 0 && nPage < nDocPages ) { |