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
commitdba46497815e56d1c877bf7fc3193d4cba46fad0 (patch)
tree13c3bf2ccb2fb8a7dcc6d53b5e32d0c6658736d4 /sw/source/ui/uno
parent76beed7ef2d7350be933c53b9c8c3f76e09624ed (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 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();