summaryrefslogtreecommitdiff
path: root/sw/source/ui/uno
diff options
context:
space:
mode:
authorPhilipp Lohmann [pl] <Philipp.Lohmann@Sun.COM>2010-02-19 11:58:34 +0100
committerPhilipp Lohmann [pl] <Philipp.Lohmann@Sun.COM>2010-02-19 11:58:34 +0100
commit017851cf302d942ba9fc846b65176c125784e481 (patch)
tree9bc97a70d87c8e3b9dc427681b1833e24050b4f0 /sw/source/ui/uno
parent0986be2a1dd63c693a680f26d14c3b8a25768cbc (diff)
ppp02: #i108327# set papertray if necessary
Diffstat (limited to 'sw/source/ui/uno')
-rwxr-xr-xsw/source/ui/uno/unotxdoc.cxx9
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();