Small bug in get_current_font()
authorrodin <rodin@ddfedd41-794f-dd11-ae45-00112f111e67>
Tue, 17 Nov 2009 12:39:56 +0000 (12:39 +0000)
committerrodin <rodin@ddfedd41-794f-dd11-ae45-00112f111e67>
Tue, 17 Nov 2009 12:39:56 +0000 (12:39 +0000)
libchimara/style.c

index 034dfd52f22c49a004da09758e54f26da2b5b89f..24e9833dfff1bb2a4c7f842b9e0d86dfe3122cb2 100644 (file)
@@ -828,10 +828,10 @@ get_current_font(guint32 wintype)
 
        switch(wintype) {
        case wintype_TextGrid:
-               normal = g_hash_table_lookup(glk_data->default_styles->text_grid, "normal");
+               normal = g_hash_table_lookup(glk_data->current_styles->text_grid, "normal");
                break;
        case wintype_TextBuffer:
-               normal = g_hash_table_lookup(glk_data->default_styles->text_buffer, "normal");
+               normal = g_hash_table_lookup(glk_data->current_styles->text_buffer, "normal");
                break;
        default:
                return NULL;