diff options
author | Philipp Lohmann [pl] <Philipp.Lohmann@Sun.COM> | 2010-02-19 11:58:34 +0100 |
---|---|---|
committer | Philipp Lohmann [pl] <Philipp.Lohmann@Sun.COM> | 2010-02-19 11:58:34 +0100 |
commit | dba46497815e56d1c877bf7fc3193d4cba46fad0 (patch) | |
tree | 13c3bf2ccb2fb8a7dcc6d53b5e32d0c6658736d4 /sw/source/ui/uno | |
parent | 76beed7ef2d7350be933c53b9c8c3f76e09624ed (diff) |
ppp02: #i108327# set papertray if necessary
Diffstat (limited to 'sw/source/ui/uno')
-rwxr-xr-x | sw/source/ui/uno/unotxdoc.cxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sw/source/ui/uno/unotxdoc.cxx b/sw/source/ui/uno/unotxdoc.cxx index 19da482149..2480e55150 100755 --- a/sw/source/ui/uno/unotxdoc.cxx +++ b/sw/source/ui/uno/unotxdoc.cxx @@ -2851,14 +2851,7 @@ uno::Sequence< beans::PropertyValue > SAL_CALL SwXTextDocument::getRenderer( // get paper tray to use ... sal_Int32 nPrinterPaperTray = -1; - if (bPrintPaperFromSetup) - { - // ... from printer setup - Printer *pPrinter = dynamic_cast< Printer * >(lcl_GetOutputDevice( *m_pPrintUIOptions )); - if (pPrinter) - nPrinterPaperTray = pPrinter->GetPaperBin(); - } - else + if (! bPrintPaperFromSetup) { // ... from individual page style (see the page tab in Format/Page dialog) const std::map< sal_Int32, sal_Int32 > &rPaperTrays = m_pRenderData->GetPrinterPaperTrays(); |