diff options
Diffstat (limited to 'rufl_paint.c')
-rw-r--r-- | rufl_paint.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/rufl_paint.c b/rufl_paint.c index de20ca0..af771bb 100644 --- a/rufl_paint.c +++ b/rufl_paint.c @@ -277,10 +277,8 @@ rufl_code rufl_process_span(rufl_action action, font_GIVEN_LENGTH | font_GIVEN_FONT | font_KERN | font_GIVEN16_BIT, *x, y, 0, trfm, n * 2); - if (rufl_fm_error) { - xfont_lose_font(f); + if (rufl_fm_error) return rufl_FONT_MANAGER_ERROR; - } } /* increment x by width of span */ @@ -302,10 +300,8 @@ rufl_code rufl_process_span(rufl_action action, 0x7fffffff, 0x7fffffff, 0, trfm, n * 2, 0, &x_out, &y_out, 0); } - if (rufl_fm_error) { - xfont_lose_font(f); + if (rufl_fm_error) return rufl_FONT_MANAGER_ERROR; - } *x += x_out / 400; return rufl_OK; |