From: <fr...@us...> - 2009-05-31 13:22:39
|
Revision: 4027 http://fuse-emulator.svn.sourceforge.net/fuse-emulator/?rev=4027&view=rev Author: fredm Date: 2009-05-31 12:33:20 +0000 (Sun, 31 May 2009) Log Message: ----------- Fix options widget drawing bug in segfault protection. Modified Paths: -------------- trunk/fuse/hacking/ChangeLog trunk/fuse/ui/widget/options.pl Modified: trunk/fuse/hacking/ChangeLog =================================================================== --- trunk/fuse/hacking/ChangeLog 2009-05-30 07:54:39 UTC (rev 4026) +++ trunk/fuse/hacking/ChangeLog 2009-05-31 12:33:20 UTC (rev 4027) @@ -3123,11 +3123,13 @@ tape.c,ui/options.dat,ula.c: switch from libsamplerate to Blip_Buffer (by Shay Green) for alias noise reduction for beeper and AY (Fred). 20090530 ui/gtk/gtkui.c: remove unused variable (Fred). -20090530 timer/timer.c: fixes for speed estimation (part of patch #2688741) - (Gergely Szasz) +20090530 timer/timer.c: fixes for speed estimation (part of patch in bug + #2688741) (Gergely Szasz). 20090530 configure.in: try harder to find libpng (Fred). 20090530 ui/gtk/gtkdisplay.c: don't allow double or triple size filters for the Timex machines (Fred). 20090530 display.c: fix border colour recorded in display_last_screen so it can handle bright borders like in Timex HiRes mode (fixes bug #2788244) (Fred). +20090531 ui/widget/options.pl: fix options widget drawing bug in segfault + protection (Fred). Modified: trunk/fuse/ui/widget/options.pl =================================================================== --- trunk/fuse/ui/widget/options.pl 2009-05-30 07:54:39 UTC (rev 4026) +++ trunk/fuse/ui/widget/options.pl 2009-05-31 12:33:20 UTC (rev 4027) @@ -85,8 +85,8 @@ sel.current = def; sel.finish_all = 0; for( i = 0; options[i] != NULL; i++ ) { - if( !strcmp( options[ i ], *current ) ) - sel.current = i; + if( *current != NULL && !strcmp( options[ i ], *current ) ) + sel.current = i; } sel.count = i; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |