diff options
author | Philipp Lohmann <pl@openoffice.org> | 2002-07-24 17:49:09 +0000 |
---|---|---|
committer | Philipp Lohmann <pl@openoffice.org> | 2002-07-24 17:49:09 +0000 |
commit | 8c1d2fdcc70cadfde538e6a257c74f4457f7e2d2 (patch) | |
tree | c365c3dff3aec8fd92f74365086b4eeb600f9809 /padmin | |
parent | 2b27e164bb3a87011af7beb476078801aad48349 (diff) |
#101710# do not delete SGENPRT.PS
Diffstat (limited to 'padmin')
-rw-r--r-- | padmin/source/adddlg.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/padmin/source/adddlg.cxx b/padmin/source/adddlg.cxx index 6e85422cbc77..4e837678432c 100644 --- a/padmin/source/adddlg.cxx +++ b/padmin/source/adddlg.cxx @@ -2,9 +2,9 @@ * * $RCSfile: adddlg.cxx,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: pl $ $Date: 2002-03-01 14:43:36 $ + * last change: $Author: pl $ $Date: 2002-07-24 18:49:09 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -245,14 +245,15 @@ IMPL_LINK( APChooseDriverPage, ClickBtnHdl, PushButton*, pButton ) for( int i = 0; i < m_aDriverBox.GetSelectEntryCount(); i++ ) { int nSelect = m_aDriverBox.GetSelectEntryPos(i); - String aDriver( m_aDriverBox.GetEntry( nSelect ) ); + String aDriver( *(String*)m_aDriverBox.GetEntryData( nSelect ) ); // never delete the default driver if( aDriver.EqualsIgnoreCaseAscii( "SGENPRT" ) ) continue; if( aDriver.Len() ) { PrinterInfo aDefInfo( rPIManager.getPrinterInfo( rPIManager.getDefaultPrinter() ) ); - OUString aPPD( *(String*)m_aDriverBox.GetEntryData( nSelect ) ); + // for comparisons convert to a OUString + OUString aPPD( aDriver ); if( aDefInfo.m_aDriverName == aPPD ) { String aText( PaResId( RID_ERR_REMOVEDEFAULTDRIVER ) ); |