summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2003-07-31 09:02:50 +0000
committerRüdiger Timm <rt@openoffice.org>2003-07-31 09:02:50 +0000
commit965570cd2316dff08fa3e247423fea9436e89ec7 (patch)
tree6ac379751733d59115de0951beb66aaed96cb3d3 /sfx2
parent06eda79164385526c36c06d8a23f143d0d7248af (diff)
#100000# print to file for stampit
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/sfxbasemodel.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx
index 55359bd3b02b..177f1fd0e183 100644
--- a/sfx2/source/doc/sfxbasemodel.cxx
+++ b/sfx2/source/doc/sfxbasemodel.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: sfxbasemodel.cxx,v $
*
- * $Revision: 1.50 $
+ * $Revision: 1.51 $
*
- * last change: $Author: hr $ $Date: 2003-06-16 11:37:18 $
+ * last change: $Author: rt $ $Date: 2003-07-31 10:02:50 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -2340,7 +2340,7 @@ void SfxBaseModel::Notify( SfxBroadcaster& rBC ,
PrintDialog* pDlg = pPrintHint->GetPrintDialog();
Printer* pPrinter = pPrintHint->GetPrinter();
- ::rtl::OUString aPrintFile ( pPrinter ? pPrinter->GetPrintFile() : String() );
+ ::rtl::OUString aPrintFile ( ( pPrinter && pPrinter->IsPrintFileEnabled() ) ? pPrinter->GetPrintFile() : String() );
::rtl::OUString aRangeText ( ( pDlg && pDlg->IsRangeChecked(PRINTDIALOG_RANGE) ) ? pDlg->GetRangeText() : String() );
sal_Bool bSelectionOnly = ( ( pDlg && pDlg->IsRangeChecked(PRINTDIALOG_SELECTION) ) ? sal_True : sal_False );
@@ -2381,7 +2381,7 @@ void SfxBaseModel::Notify( SfxBroadcaster& rBC ,
sal_Int32 nAdd = pPrintHint->GetAdditionalOptions().getLength();
m_pData->m_aPrintOptions.realloc( nOld + nAdd );
for ( sal_Int32 n=0; n<nAdd; n++ )
- m_pData->m_aPrintOptions[ nOld+n ] = pPrintHint->GetAdditionalOptions()[n];
+ m_pData->m_aPrintOptions[ nOld+n ] = pPrintHint->GetAdditionalOptions()[n];
}
else if ( pPrintHint->GetWhich() != -2 )
{