diff options
author | Christian Lippka <cl@openoffice.org> | 2010-06-18 15:27:12 +0200 |
---|---|---|
committer | Christian Lippka <cl@openoffice.org> | 2010-06-18 15:27:12 +0200 |
commit | 0e574a1234e3f14ea7174ea906277038e0317e2c (patch) | |
tree | 382d47611fbb723e20659d4df45f7106aee00748 /svx/source/sdr | |
parent | 84fa472bdcc239199974d1ec92e31652989af516 (diff) |
#i102353# correct page number and page count field when printing handouts
Diffstat (limited to 'svx/source/sdr')
-rw-r--r-- | svx/source/sdr/primitive2d/sdrtextprimitive2d.cxx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/svx/source/sdr/primitive2d/sdrtextprimitive2d.cxx b/svx/source/sdr/primitive2d/sdrtextprimitive2d.cxx index 622e30ba54..2b8aa5c119 100644 --- a/svx/source/sdr/primitive2d/sdrtextprimitive2d.cxx +++ b/svx/source/sdr/primitive2d/sdrtextprimitive2d.cxx @@ -77,8 +77,16 @@ namespace if(pPage && pPage->GetModel()) { - const sal_uInt16 nPageCount(pPage->GetModel()->GetPageCount()); - nRetval = ((sal_Int16)nPageCount - 1) / 2; + if( (pPage->GetPageNum() == 0) && !pPage->IsMasterPage() ) + { + // handout page! + return pPage->GetModel()->getHandoutPageCount(); + } + else + { + const sal_uInt16 nPageCount(pPage->GetModel()->GetPageCount()); + nRetval = ((sal_Int16)nPageCount - 1) / 2; + } } return nRetval; |