From 8c1d2fdcc70cadfde538e6a257c74f4457f7e2d2 Mon Sep 17 00:00:00 2001 From: Philipp Lohmann Date: Wed, 24 Jul 2002 17:49:09 +0000 Subject: #101710# do not delete SGENPRT.PS --- padmin/source/adddlg.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'padmin') 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 ) ); -- cgit v1.2.3