summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/DrawUtil.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DrawUtil.cc b/src/DrawUtil.cc
index 4b2115b..220a993 100644
--- a/src/DrawUtil.cc
+++ b/src/DrawUtil.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: DrawUtil.cc,v 1.6 2002/04/03 23:00:10 fluxgen Exp $ 22// $Id: DrawUtil.cc,v 1.7 2002/05/07 08:15:18 fluxgen Exp $
23 23
24#ifdef HAVE_CONFIG_H 24#ifdef HAVE_CONFIG_H
25# include "config.h" 25# include "config.h"
@@ -82,7 +82,7 @@ XRotFontStruct *XRotLoadFont(Display *dpy, char *fontname, float angle) {
82 82
83 /* load the font ... */ 83 /* load the font ... */
84 fontstruct = XLoadQueryFont(dpy, fontname); 84 fontstruct = XLoadQueryFont(dpy, fontname);
85 if (fontstruct == NULL) { 85 if (fontstruct == 0 || fontstruct->per_char == 0) {
86 cerr<<"Fluxbox::DrawUtil: No font"<<endl; 86 cerr<<"Fluxbox::DrawUtil: No font"<<endl;
87 return 0; 87 return 0;
88 } 88 }