aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-05-07 08:15:18 (GMT)
committerfluxgen <fluxgen>2002-05-07 08:15:18 (GMT)
commiteaecf66a232de556ac9003920f1c9694fed0e2c5 (patch)
treefe9828c0b51c087e8ad1a1887d8d6dd3b09987ec
parentfbf610b774107f1139e4b40008b5f2fed611a589 (diff)
downloadfluxbox_paul-eaecf66a232de556ac9003920f1c9694fed0e2c5.zip
fluxbox_paul-eaecf66a232de556ac9003920f1c9694fed0e2c5.tar.bz2
fixed more checking on the fontstruct
-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 }