My previous patch was reversed, sorry.
--- sc/source/ui/dbgui/scuiasciiopt.cxx 2007-09-15 02:39:09.000000000 +0200
+++ sc/source/ui/dbgui/scuiasciiopt.cxx 2007-09-15 02:41:07.000000000 +0200
@@ -346,12 +346,13 @@
        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<nCount; i++)

Reply via email to