[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#403128: Patch




Dear Debian,

Here is a patch (hereby released into the public domain, or with the same licence as the original file(s).

Please test it and integrate in releases if OOO won't - I will submit this to them as well.

For users suffering from this bug under etch amd64, the file
https://webmail.omikk.bme.hu/~eknagy/ooobugs/libscui680lx.so
can be copied to /usr/lib/openoffice/program/ after backing up the original, as a Quick-and-Dirty solutions. Full debs might appear on
https://webmail.omikk.bme.hu/~eknagy/ooobugs/ later.

As far as I see (but I am a Java guy and I don't speak UNO I will not look into it further), the bug is in the OOO source tree, caused by the OOO patch "sc-preserve-imp-opts", but I do not understand how they have not found it when testing -
maybe this line:
aLbCharSet.SetSelectHdl( LINK( this, ScImportAsciiDlg, CharSetHdl ) );
beheave differently on different platforms?
Somebody might want to check this possibly different behaviour out.

Elemer
--- 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<nCount; i++)

Reply to: