Small bug in get_current_font()
authorMarijn van Vliet <marijn.vanvliet@med.kuleuven.be>
Tue, 17 Nov 2009 12:39:56 +0000 (12:39 +0000)
committerMarijn van Vliet <marijn.vanvliet@med.kuleuven.be>
Tue, 17 Nov 2009 12:39:56 +0000 (12:39 +0000)
git-svn-id: http://lassie.dyndns-server.com/svn/gargoyle-gtk@174 ddfedd41-794f-dd11-ae45-00112f111e67

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;