diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2008-01-29 15:20:06 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2008-01-29 15:20:06 +0000 |
commit | 68b8ad9b93808371c0af3883b443469b15d58ef9 (patch) | |
tree | 386b77535f69292b6bdb59f533f9742558476ebe /sc/source/ui/unoobj/confuno.cxx | |
parent | 5f90a9533e5fb69971071daf6a487a3e3d542c79 (diff) |
INTEGRATION: CWS fwk82_SRC680 (1.28.60); FILE MERGED
2008/01/11 13:49:25 mav 1.28.60.1: #i82141# do not allow to set printer on embedded object
Diffstat (limited to 'sc/source/ui/unoobj/confuno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/confuno.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/unoobj/confuno.cxx b/sc/source/ui/unoobj/confuno.cxx index 785d8dbe4ec7..66557608298f 100644 --- a/sc/source/ui/unoobj/confuno.cxx +++ b/sc/source/ui/unoobj/confuno.cxx @@ -4,9 +4,9 @@ * * $RCSfile: confuno.cxx,v $ * - * $Revision: 1.28 $ + * $Revision: 1.29 $ * - * last change: $Author: ihi $ $Date: 2007-11-26 18:42:52 $ + * last change: $Author: rt $ $Date: 2008-01-29 16:20:06 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -199,10 +199,10 @@ void SAL_CALL ScDocumentConfiguration::setPropertyValue( else if ( aPropertyName.compareToAscii( SC_UNO_PRINTERNAME ) == 0 ) { rtl::OUString sPrinterName; - if (aValue >>= sPrinterName) + if ( aValue >>= sPrinterName ) { // #i75610# if the name is empty, do nothing (don't create any printer) - if ( sPrinterName.getLength() != 0 ) + if ( sPrinterName.getLength() != 0 && pDocShell->GetCreateMode() != SFX_CREATE_MODE_EMBEDDED ) { SfxPrinter* pPrinter = pDocShell->GetPrinter(); if (pPrinter) |