From: Felix Domke Date: Sun, 22 Mar 2009 23:31:55 +0000 (+0100) Subject: add some debug assertions X-Git-Tag: 2.6.0~366 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/010ff656ec07201a811571830de04bfa2c85676a add some debug assertions --- diff --git a/lib/gdi/font.cpp b/lib/gdi/font.cpp index 450269f0..6a6007ee 100644 --- a/lib/gdi/font.cpp +++ b/lib/gdi/font.cpp @@ -510,7 +510,12 @@ int eTextPara::renderString(const char *string, int rflags) if (!current_font) return -1; - + + if (!current_face) + eFatal("eTextPara::renderString: no current_face"); + if (!current_face->size) + eFatal("eTextPara::renderString: no current_face->size"); + if (cursor.y()==-1) { cursor=ePoint(area.x(), area.y()+(current_face->size->metrics.ascender>>6));