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 | 017851cf302d942ba9fc846b65176c125784e481 (patch) | |
tree | 9bc97a70d87c8e3b9dc427681b1833e24050b4f0 /sw/source/ui/uno | |
parent | 0986be2a1dd63c693a680f26d14c3b8a25768cbc (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 3058c225bf3f..0007f5a6b4e9 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(); |