--- mypatch/sc/source/ui/dbgui/scuiasciiopt.cxx 2007-09-14 14:09:35.000000000 +0200 +++ original/sc/source/ui/dbgui/scuiasciiopt.cxx 2007-09-14 14:09:10.000000000 +0200 @@ -346,13 +346,12 @@ aLbCharSet.InsertTextEncoding( RTL_TEXTENCODING_DONTKNOW, aCharSetUser ); aLbCharSet.SelectTextEncoding( bPreselectUnicode ? RTL_TEXTENCODING_UNICODE : gsl_getSystemTextEncoding() ); + SetSelectedCharSet(); + aLbCharSet.SetSelectHdl( LINK( this, ScImportAsciiDlg, CharSetHdl ) ); if( nCharSet >= 0 ) aLbCharSet.SelectEntryPos( nCharSet ); - SetSelectedCharSet(); - aLbCharSet.SetSelectHdl( LINK( this, ScImportAsciiDlg, CharSetHdl ) ); - // *** column type ListBox *** xub_StrLen nCount = aColumnUser.GetTokenCount(); for (xub_StrLen i=0; i