edox: Avoid LTO null pointer warning

master
Kim Woelders 1 year ago
parent 551ff7b669
commit 4f9913301e
  1. 5
      dox/ttfont.c

@ -1,6 +1,6 @@
/*
* Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
* Copyright (C) 2010-2014 Kim Woelders
* Copyright (C) 2010-2021 Kim Woelders
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
@ -116,9 +116,6 @@ Efont_extents(Efont * f, const char *text, int *font_ascent_return,
{
int w, h;
if (!f)
return;
imlib_context_set_font(f->face);
imlib_get_text_advance(text, &w, &h);
if (width_return)

Loading…
Cancel
Save