changeset 36485:f13731842016

Fix setting entry for subtitle_font_encoding. This is necessary after rearrangement of the codings.
author ib
date Tue, 14 Jan 2014 17:56:50 +0000
parents 29dd21c0fa9d
children ba8a57ee32cd
files gui/dialog/preferences.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gui/dialog/preferences.c	Tue Jan 14 17:13:36 2014 +0000
+++ b/gui/dialog/preferences.c	Tue Jan 14 17:56:50 2014 +0000
@@ -1223,11 +1223,11 @@
  gtk_adjustment_set_value( HSFontOutLineadj,subtitle_font_thickness / 8.0 * 100.0);   // transform 0..8 to 0..100
  gtk_adjustment_set_value( HSFontTextScaleadj,text_font_scale_factor );
  gtk_adjustment_set_value( HSFontOSDScaleadj,osd_font_scale_factor );
- if ( subtitle_font_encoding )
   {
    int i;
+   const char *s = (subtitle_font_encoding ? subtitle_font_encoding : "UNICODE");
    for ( i=0;lEncoding[i].name;i++ )
-    if ( !strcasecmp( subtitle_font_encoding,lEncoding[i].name ) ) break;
+    if ( !strcasecmp( s,lEncoding[i].name ) ) break;
    if ( lEncoding[i].name ) gtk_entry_set_text( GTK_ENTRY( EFontEncoding ),lEncoding[i].comment );
   }
  switch ( subtitle_autoscale )