Commits

Anonymous committed 8332a1a

sw33bf11: #i114875# - method <SwXTextDocument::getRenderer(..)> - consider brochure print correctly in fix for issue i114210

Comments (0)

Files changed (1)

sw/source/ui/uno/unotxdoc.cxx

     {
         // --> TL, OD 2010-09-07 #i114210#
         // determine the correct page number from the renderer index
-        const USHORT nPage = m_pRenderData->GetPagesToPrint()[ nRenderer ];
+        // --> OD 2010-10-01 #i114875
+        // consider brochure print
+        const USHORT nPage = bPrintProspect
+                             ? nRenderer + 1
+                             : m_pRenderData->GetPagesToPrint()[ nRenderer ];
         // <--
         
         // get paper tray to use ...