Commit 177f808a authored by Serge Gautherie's avatar Serge Gautherie Committed by Alexandre Julliard

riched20: Check font_cache in select_style() too.

parent 4138ef14
...@@ -429,7 +429,7 @@ void select_style( ME_Context *c, ME_Style *s ) ...@@ -429,7 +429,7 @@ void select_style( ME_Context *c, ME_Style *s )
c->orig_font = NULL; c->orig_font = NULL;
} }
if (c->current_style) if (c->current_style && c->current_style->font_cache)
{ {
release_font_cache( c->current_style->font_cache ); release_font_cache( c->current_style->font_cache );
c->current_style->font_cache = NULL; c->current_style->font_cache = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment