summaryrefslogtreecommitdiff
path: root/sw/source/ui/uno/unotxdoc.cxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2010-09-24 14:47:51 +0200
committerKurt Zenker <kz@openoffice.org>2010-09-24 14:47:51 +0200
commit5f538bb8838536c0d9723a80422a579f5b32f9f5 (patch)
tree61059b2cd515d323213bf21c38e693d4ad15f223 /sw/source/ui/uno/unotxdoc.cxx
parente53388f4cf65cd733154705b06ee0655608187c5 (diff)
parent2bd49368c9e48a161b9f0b42fa0826d5c71fbc5b (diff)
CWS-TOOLING: integrate CWS sw33bf09
Notes
split repo tag: writer_ooo/OOO330_m9
Diffstat (limited to 'sw/source/ui/uno/unotxdoc.cxx')
-rw-r--r--sw/source/ui/uno/unotxdoc.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/ui/uno/unotxdoc.cxx b/sw/source/ui/uno/unotxdoc.cxx
index 27ba8add92d4..e78fc11c1203 100644
--- a/sw/source/ui/uno/unotxdoc.cxx
+++ b/sw/source/ui/uno/unotxdoc.cxx
@@ -2856,7 +2856,10 @@ uno::Sequence< beans::PropertyValue > SAL_CALL SwXTextDocument::getRenderer(
uno::Sequence< beans::PropertyValue > aRenderer;
if (m_pRenderData)
{
- const USHORT nPage = nRenderer + 1;
+ // --> TL, OD 2010-09-07 #i114210#
+ // determine the correct page number from the renderer index
+ const USHORT nPage = m_pRenderData->GetPagesToPrint()[ nRenderer ];
+ // <--
// get paper tray to use ...
sal_Int32 nPrinterPaperTray = -1;